• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Web service in Jboss EAP 6.2 problem

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic