Hi All- I am using Axis Provider. When the envelope is generated and sent to the server, provider puts and extra namespace. It is causing problem to the remote server.
For example, the following envelope works. <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> <ns1:searchCustomers soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://trial.gers.com/orchlet#TrialSearch#Common#http://trial.gers.com/orchlet#CommonPT"> <customer xsi:type="ns2:Customer" xmlns:ns2="http://trial.gers.com"> <firstName xsi:type="xsd:string" xsi:nil="true"/> </customer> </ns1:searchCustomers> </soapenv:Body> </soapenv:Envelope> But the Axis provider generates the following envelope, with extra namespace, when used: <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> <ns1:searchCustomers soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://trial.gers.com/orchlet#TrialSearch#Common#http://trial.gers.com/orchlet#CommonPT"> <ns1:customer xsi:type="ns2:Customer" xmlns:ns2="http://trial.gers.com"> <firstName xsi:type="xsd:string" xsi:nil="true"/> </ns1:customer> </ns1:searchCustomers> </soapenv:Body> </soapenv:Envelope> In the above envelope, the namespace ns1 to the customer element is causing problem. When I remove it, the remote server process the request without problems. Any ideas why I extra namepsace is causing problems? Appreciate your input. -Muthu
