Hi,
I'm developing a webservice that uses soap headers with JBoss 4.0.3 Sp1. I have 
followed the jboss (test) examples that do not use custom type mappings in the 
wsdl. The namespace does not appear to be correct in the soap envelope. 

My problem with this approach is that since the  output header uses the default 
namespace it fails xsd validation. Btw: My client works and accesses the 
webservice.

I have tried using custom types but that approach does not seem to work (I can 
share the logs illustrating the NPEs if you want to see them).

So my question is really centering on using default types, i.e, xsd:string. Is  
there something I am missing in terms of making the header element namespace 
aware?

Here are the relevant snippets. 
wsdl:
<definitions name="MyWebServiceService" targetNamespace="urn:MyWebService" 
xmlns:tns="urn:MyWebService" xmlns:ns3="http://somens"; 
...

...

    
    
...

...

      <soap:operation soapAction=""/>
      
        <soap:header message="tns:MyWebService_handleWSRequest" part="header" 
use="literal" namespace="http://somens"; />
...
Soap Envelope (captured in transit)
<soapenv:Header>
  Default Header value
 </soapenv:Header>
...

What I would expect:
<soapenv:Header>
  <ns3:header>Default Header value</ns3:header>
 </soapenv:Header>

Thanks in advance,

Rich


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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to