• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Binding error  RSS feed

 
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am getting following error while calling a webservice

There is a binding error associated with activity. Start
BWENGINE-100031 Output data invalid
caused by: org.xml.sax.SAXException: validation error: unexpected content "OrderSimCard"; expected "{http://ipl.netcom.no/200707/ResourceManager}OrderSimCardRequest" ({com.tibco.xml.validation}COMPLEX_E_UNEXPECTED_CONTENT) at /{http://ipl.webservice.netcom.no/resourcedomain/resourcemanager}OrderSimCardRequest[1]/part1[1]/OrderSimCard[1]
com.tibco.xml.validation.exception.d: unexpected content "OrderSimCard"; expected "{http://ipl.netcom.no/200707/ResourceManager}OrderSimCardRequest"
validation error: no declaration for element "OrderSimCard" ({com.tibco.xml.validation}COMPLEX_E_MISSING_ELEMENT_DECLARATION) at /{http://ipl.webservice.netcom.no/resourcedomain/resourcemanager}OrderSimCardRequest[1]/part1[1]/OrderSimCard[1]
com.tibco.xml.validation.exception.i: no declaration for element "OrderSimCard"

The input data i am sending is (got through TCPMON)

Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.2.1
Host: localhost:8082
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "/Services/ResourceDomain/ResourceManagerService/ResourceManagerPort/OrderSimCard"
Content-Length: 1526

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><ns1:AnnotationRoot soapenv:mustUnderstand="0" xmlns:ns1="http://ipl.netcom.no/version2.0/annotation"><ns1:clienttraceid>kuve8974-1-1184578372950</ns1:clienttraceid><ns1:callsequencetrace>no.netcom.webservice.ipl.ResourceDomain.ResourceManager.ResourceManagerFixture.doOrderSimCard</ns1:callsequencetrace><ns1:endusername>kuve8974</ns1:endusername></ns1:AnnotationRoot><ns2 rderSimCardRequest xmlns:ns2="http://ipl.netcom.no/200707/ResourceManager"><ns3:AnnotationRoot xsi:type="ns3:Annotation" xmlns:ns3="http://ipl.netcom.no/version2.0/annotation"><ns3:clienttraceid>1111</ns3:clienttraceid><ns3:callsequencetrace>222</ns3:callsequencetrace></ns3:AnnotationRoot><ns2 rganization><Address><POBoxAddress><boxNr>10</boxNr><boxName>bno</boxName><city>oslo</city><iso3countryCode>122</iso3countryCode><postcode>111</postcode></POBoxAddress><UrbanAddress><streetName>st . hanhaugen</streetName><streetNr>92600070</streetNr><streetNrSuffix>123</streetNrSuffix><city>oslo</city><iso3countryCode>122</iso3countryCode><postcode>111</postcode><floorNumber>22</floorNumber><doorNumber>33</doorNumber></UrbanAddress></Address></ns2 rganization><ns2:numberOfSimCards>20</ns2:numberOfSimCards></ns2 rderSimCardRequest></soapenv:Header><soapenv: Body><OrderSimCard xmlns=""/></soapenv:Body></soapenv:Envelope>

Any Idea what is wrong

Thanks and Regards,
Kundan
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!