facebook

JAX-WS does not accept alternate name space from axis client

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #300704 Reply

    billflood
    Member

    I developed a JAX-WS from the bottom up in ME 7.

    When invoking this service from an axis client an explicit name space on a method is used by default and fails. Note the explicit name space on GetMessageHeaders

    
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header/>
       <soapenv:Body>
          <GetMessageHeaders xmlns="http://mail.uc.uep.company.com/"]
    ...
    

    However, the following invocation style does work but either of these methods should be perfectly legal. Note that the name space for “mail” on GetMessageHeaders is forward declared.

    
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:mail= "http://mail.uc.uep.company.com/">
        <SOAP-ENV:Body>
            <mail:GetMessageHeaders>
    ...
    

    You can try this with any Web service from a soap tester.
    This looks like a bug in JAX-WS or am I missing something?

    #300777 Reply

    Loyal Water
    Member

    billflood,
    The dev team is looking into this issue. They will get back to you with a reply asap.

    #300797 Reply

    Brian Fernandes
    Moderator

    billflood,

    Are you sure the GetMessageHeaders operation is in the “http://mail.uc.uep.company.com/&#8221; namespace? Can you confirm this in the WSDL generated?

    If so, I agree it should be working and this seems like an odd bug. Unfortunately, I cannot help with JAX-WS framework issues and would suggest you post directly to the JAX-WS forum here: http://forums.java.net/jive/forum.jspa?forumID=46&start=0

    Hope his helps.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JAX-WS does not accept alternate name space from axis client

You must be logged in to post in the forum log in