The Artima Developer Community
Sponsored Link

Web Services Forum
org.xml.sax.SAXException: Invalid element in com.xxx

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
fren sandy

Posts: 1
Nickname: frensandy
Registered: Nov, 2009

org.xml.sax.SAXException: Invalid element in com.xxx Posted: Nov 27, 2009 7:30 AM
Reply to this message Reply
Advertisement
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">

<wsdlperation name="JobTakeback">
<wsdl:input message="impl:JobTakebackRequest" />
<wsdlutput message="impl:JobTakebackResponse" />
</wsdlperation>
</wsdl:portType>

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


<wsdlperation name="JobTakeback">
<soapperation soapAction="JobTakeback" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdlutput>
<soap:body use="literal" />
</wsdlutput>
</wsdlperation>
</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

Topic: Axis is not supporting Greek Characters Previous Topic   Next Topic Topic: Using gSoap in Cloud computing project written in C

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use