Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Thu, 17 Jul 2008 09:18:54 -0700 (PDT),    group: microsoft.public.xml.soap        back       


C# Client: change namespace prefix to use a web service Java   
Hello,
my C# client sends the following SOAP request to a server for
consuming a web services Java-based:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <soap:Body>
            <ExpandOrderRequest xmlns="http://wshost.com/schemas/
kcengine">
                  <orderId>55</orderId>
                  <orderSize>500</orderSize>
                  <codeLength>20</codeLength>
                  <codePattern>A</codePattern>
	           <sorting>R</sorting>
	  </ExpandOrderRequest>
      </soap:Body>
</soap:Envelope>
and this generates an error.

I need to modify the namespace prefix in order to obtain something
like that:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <kcen:ExpandOrderRequest xmlns:kcen="http://wshost.com/schemas/
kcengine">
         <kcen:orderId>58</kcen:orderId>
         <kcen:orderSize>500</kcen:orderSize>
         <kcen:codeLength>20</kcen:codeLength>
         <kcen:codePattern>A</kcen:codePattern>
         <kcen:sorting>R</kcen:sorting>
      </kcen:ExpandOrderRequest>
   </soapenv:Body>
</soapenv:Envelope>
With a message like that all works fine.

How can I do to modify namespace prefix???

thank you

ste
date: Thu, 17 Jul 2008 09:18:54 -0700 (PDT)   author:   sTe

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us