Hi,

with Dietmar's hack I was able to call a webservice that required messages to 
be formatted according to elementFormDefault="qualified" . 

Originally, the soap message generated by JBoss 4.0.2 looked like this:


  |  <soapenv:Body>
  |   <ns1:UpdateByOrderId xmlns:ns1="http://ntmefisto/MefistoWS";>
  |    <techid>66</techid>
  |    <enable>true</enable>
  |   </ns1:UpdateByOrderId>
  |  </soapenv:Body>
  | 

This message was rejected by the server because the nested elements (techid and 
enable) were not prefixed with the correct namespace.

After modifying the WSDL file and changing the complex type definition from ...


  |         <s:complexType>
  |           <s:sequence>
  |             <s:element minOccurs="1" maxOccurs="1" name="techid" 
type="s:long" />
  |             <s:element minOccurs="1" maxOccurs="1" name="enable" 
type="s:boolean" />
  |           </s:sequence>
  | 

... into ...


  |         <s:complexType>
  |           <s:sequence>
  |             <s:element minOccurs="1" maxOccurs="1" name="ns1:techid" 
type="s:long" />
  |             <s:element minOccurs="1" maxOccurs="1" name="ns1:enable" 
type="s:boolean" />
  |           </s:sequence>
  | 

... everything worked because the message looked like this:


  |  <soapenv:Body>
  |   <ns1:UpdateByOrderId xmlns:ns1="http://ntmefisto/MefistoWS";>
  |    <ns1:techid>66</ns1:techid>
  |    <ns1:enable>true</ns1:enable>
  |   </ns1:UpdateByOrderId>
  |  </soapenv:Body>
  | 

This is ugly but effective (and was tested with JBoss 4.0.2 only).
HTH someone ;)


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3903823#3903823

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903823


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to