You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Andrea Zoppello <zo...@tiscali.it> on 2007/07/27 16:39:45 UTC

Is Soap Writer modifyng xml structure adding namespaces ???

Hi,

I'm having a lot of trouble try to calling a webservice exposed by omar 
ebxml registry.

I've done a simple sa configured as:
- FILE Poller ( Configured with default marshaller ) -> EIP Pipeline -> 
HTTP Soap (BC ) Provider ->  Lw StreamWriter

In particular the file contains an xml that must be put in  the SOAP Body:

I've two problems:

1) The webservice require to have a tag <SOAP-ENV:Header/> empty and i 
don't find a way to get servicemix
    to do a similar soap request.

2) The other most important problem is that if  i've from the file a 
normalized messahe like:

    <SubmitObjectsRequest 
xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0" 
xmlns:lcm="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0" 
xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0" 
xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" 
xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0  
../../../../ebxmlrr-spec/misc/3.0/schema/lcm.xsd">
  <rim:RegistryObjectList>
    ....

    the soap request that come from smx ( debugged from TCPMonitor ) is 
modified and i'll find the namespace declaration
    on the <rim:RegistryObjectList> tag.

    This request will cause exception on the webservice.

<?xml version='1.0' encoding='UTF-8'?><env:Envelope 
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><SubmitObjectsRequest 
xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0" 
xmlns:lcm="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0" 
xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0" 
xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" 
xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0  
../../../../ebxmlrr-spec/misc/3.0/schema/lcm.xsd">
  <rim:RegistryObjectList 
xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">
                                       
Any Idea?? The only thing that i've noticed is that in the SOAP Writer 
the message is handler using StreamSource object.