• Post Reply Bookmark Topic Watch Topic
  • New Topic

Web service in Jboss EAP 6.2 problem  RSS feed

 
Nps Ferreira
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I´m puzzled with a problem in jboss EAP 6.2 about a web service.
This exactly web service was in the Jboss EAP 6.0 and have no problem of invocation. We install a newest version of the jboss EAP 6.2 and the SAME web service stop working.
After a long debugging the problem is in the namespace used in a particular element, but his don´t have any problem in a early version.

Here is the SOAP:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" >
<s:Header>
<h:auth xmlns="http://example.com" xmlns:h="http://example.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
<password xmlns="">0000</password>
<userName xmlns="">potatoes</userName>
</h:auth>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<listEntities xmlns="http://example.com"></listEntities>
</s:Body>
</s:Envelope>

This way the web service fails in JBOSS 6.2 (and works in 6.0), if you remove the bold text of the element it works in JBOSS 6.2.
Why this behavior? and the problem is that i don´t have any control in the request so how i´m supposed to make it work?
This SOAP is generated in a Microsoft environment, but SOAP is SOAP it should work.

Have anyone any idea to make this work? Any config that i miss in the new version?


Cheers,

Bigster
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What error/exception are you seeing? Can you post the stacktrace?
 
Nps Ferreira
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yes, here it is:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Unmarshalling Error: unexpected element (uri:"http://example.com", local:"password"). Expected elements are <{}userName>,<{}password></faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>



Cheers,

Bigster
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!