• Post Reply Bookmark Topic Watch Topic
  • New Topic

org.xml.sax.SAXException: Invalid element in ... JobTakeback - JobTakebackStc'

 
fren sandy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am pretty new to WSDL's, XML's and SOAP's, so pardon me if I sound a little naive. I have an application that is sending a wsdl to mercury server test. Mercury server test receives the request and sends out a response. The app is failing with the error "Id(Y00f9be45b00000160Y00000def0001);org.xml.sax.SAXException: Invalid element in com.xxx .JobTakeback - JobTakebackStc'.

Have copy pasted the wsdl file for your reference. xxx is dummy info for confidentiality :)
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions targetNamespace="http://www.xxx.com"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://www.xxx.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:s="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://www.xxx.com">

<s:complexType name="ToMfsMsgHeader">
<s:all>
<s:element name="MsgId" nillable="true" type="s:string" />
<s:element name="NmsEnvironment" nillable="true" type="s:string" />
<s:element name="NmsGroupName" nillable="true" type="s:string" />
<s:element name="Timestamp" nillable="true" type="s:dateTime" />
<s:element maxOccurs="1" minOccurs="0" name="TimeToLive" nillable="true" type="s:duration" />
<s:element maxOccurs="1" minOccurs="0" name="ShortDescription" nillable="true" type="s:string" />
<s:element maxOccurs="1" minOccurs="0" name="LongDescription" nillable="true" type="s:string" />
<s:element maxOccurs="1" minOccurs="0" name="TestScenario" nillable="true" type="s:string" />
<s:element name="mDroverSpecific">
<s:complexType>
<s:all>
<s:element name="MessageExternalSourceEnv" nillable="true" type="s:string" />
<s:element name="MessageMACHSubSystem" nillable="true" type="s:string" />
<s:element name="TimeToLive" nillable="true" type="s:integer" />
</s:all>
</s:complexType>
</s:element>
</s:all>
</s:complexType>

<s:complexType name="UserIdentificationType">
<s:all>
<s:element name="UserId" nillable="true" type="s:string" />
<s:element name="UserName" nillable="true" type="s:string" />
</s:all>
</s:complexType>



<s:element name="JobTakeback">
<s:complexType>
<s:all>
<s:element minOccurs="1" maxOccurs="1" name="JobTakebackStc" type="impl:JobTakebackStc" />
</s:all>
</s:complexType>
</s:element>

<s:complexType name="JobTakebackStc">
<s:all>
<s:element name="MsgHeader" nillable="true" type="impl:ToMfsMsgHeader" />
<s:element name="MsgBody">
<s:complexType>
<s:all>
<s:element name="ToUser" nillable="true" type="impl:UserIdentificationType" />
<s:element name="JobNumber" nillable="true" type="s:string" />
<s:element name="Timestamp" nillable="true" type="s:dateTime" />
</s:all>
</s:complexType>
</s:element>
</s:all>
</s:complexType>

<s:element name="JobTakebackResponse">
<s:complexType>
<s:all>
<s:element minOccurs="1" maxOccurs="1" name="JobTakebackResponseStc" type="impl:JobTakebackResponseStc" />
</s:all>
</s:complexType>
</s:element>
<s:complexType name="JobTakebackResponseStc">
<s:all>
<s:element minOccurs="1" maxOccurs="1" name="Status" type="s:int" />
</s:all>
</s:complexType>

</s:schema>
</wsdl:types>

<wsdl:message name="JobTakebackRequest">
<wsdl:part element="impl:JobTakeback" name="parameters" />
</wsdl:message>

<wsdl:message name="JobTakebackResponse">
<wsdl:part element="impl:JobTakebackResponse" name="parameters" />
</wsdl:message>

<wsdl:portType name="basics">

<wsdl:operation name="JobTakeback">
<wsdl:input message="impl:JobTakebackRequest" />
<wsdl:output message="impl:JobTakebackResponse" />
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="basicsSOAPSoapBinding" type="impl:basics">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />


<wsdl:operation name="JobTakeback">
<soap:operation soapAction="JobTakeback" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>

<wsdl:service name="basics">
<wsdl:port binding="impl:basicsSOAPSoapBinding" name="basicsSOAP">
<soap:address location="http://localhost:8081/axis/services/basicsSOAP" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>


Any pointers would be really helpful. Thanks in advance :)

Regards,
frensandy
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Have you tried to validate the WSDL using an XML editor, for instance Oxygen XML?
http://www.oxygenxml.com/
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!