axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From java <j...@nilling.nl>
Subject Problem with namespaces in SOAP message
Date Tue, 22 Jul 2003 22:49:28 GMT
Hi,
I try to create a SOAP message to send to a server. This server can't 
handle namespaces, so I need to get rid of the namespace in the message.

the message I need is:

<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <InlogRequest>
   <dealer_code>12345</dealer_code>
   <user_code>username</user_code>
   <user_password>password</user_password>
  </InlogRequest>
 </soapenv:Body>
</soapenv:Envelope>

put what I try I get only this with MESSAGE

<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <InlogRequest xmlns="">                                   <------  
this line :-)
   <dealer_code>12345</dealer_code>
   <user_code>username</user_code>
   <user_password>password</user_password>
  </InlogRequest>
 </soapenv:Body>
</soapenv:Envelope>

or this with WRAPPED

<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <Inlog xmlns="">                                                  
<------ this line
   <InlogRequest>
    <dealer_code>12345</dealer_code>
    <user_code>username</user_code>
    <user_password>password</user_password>
   </InlogRequest>
  
</Inlog>                                                                 
<------- and this one
 </soapenv:Body>
</soapenv:Envelope>

Is it possible to loose the xmlns="" when MESSAGE is used or the <Inlog 
xmlns=""> tag when using WRAPPED.

I must use this service and I have no control of how this service 
operate. But from spec I can't use the namespaces.

Thanks

Johan




-- 
Nilling Software Design
Postbus 43
2280 AA  Rijswijk ZH
w: http://www.nilling.nl



Mime
View raw message