After generating the java files from the wsdl and sending the content i get following answer from the SAP webservice:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Client</faultcode> <faultstring>Internal Server Error</faultstring> <detail>SoapDoc::CheckNameSpace: Wrong xml name space</detail> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> The Request sent is (catched with a TCP Tunnel ) is : version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <BAPI_MATERIAL_GETALL xmlns=""> <ns1:COMPANYCODE xmlns:ns1="urn:sap-com:document:sap:rfc:functions"/> <ns2:DISTRIBUTIONCHANNEL xmlns:ns2="urn:sap-com:document:sap:rfc:functions"/> <ns3:EXTENSIONOUT xsi:nil="true" xmlns:ns3="urn:sap-com:document:sap:rfc:functions"/> <ns4:INTERNATIONARTICLENUMBERS xsi:nil="true" xmlns:ns4="urn:sap-com:document:sap:rfc:functions"/> <ns5:KZRFB_ALL xmlns:ns5="urn:sap-com:document:sap:rfc:functions"/> <ns6:LIFOVALUATIONLEVEL xmlns:ns6="urn:sap-com:document:sap:rfc:functions"/> <ns7:MATERIAL xmlns:ns7="urn:sap-com:document:sap:rfc:functions">1725597</ns7:MATERIAL> <ns8:MATERIALDESCRIPTION xsi:nil="true" xmlns:ns8="urn:sap-com:document:sap:rfc:functions"/> <ns9:MATERIALTEXT xsi:nil="true" xmlns:ns9="urn:sap-com:document:sap:rfc:functions"/> <ns10:MATERIAL_EVG xmlns:ns10="urn:sap-com:document:sap:rfc:functions"> <MATERIAL_EXT/> <MATERIAL_VERS/> <MATERIAL_GUID/> </ns10:MATERIAL_EVG> <ns11:PLANT xmlns:ns11="urn:sap-com:document:sap:rfc:functions">102</ns11:PLANT> <ns12:RETURN xsi:nil="true" xmlns:ns12="urn:sap-com:document:sap:rfc:functions"/> <ns13:SALESORGANISATION xmlns:ns13="urn:sap-com:document:sap:rfc:functions"/> <ns14:STORAGELOCATION xmlns:ns14="urn:sap-com:document:sap:rfc:functions"/> <ns15:STORAGETYPE xmlns:ns15="urn:sap-com:document:sap:rfc:functions"/> <ns16:TAXCLASSIFICATIONS xsi:nil="true" xmlns:ns16="urn:sap-com:document:sap:rfc:functions"/> <ns17:UNITSOFMEASURE xsi:nil="true" xmlns:ns17="urn:sap-com:document:sap:rfc:functions"/> <ns18:VALUATIONAREA xmlns:ns18="urn:sap-com:document:sap:rfc:functions"/> <ns19:VALUATIONTYPE xmlns:ns19="urn:sap-com:document:sap:rfc:functions"/> <ns20:WAREHOUSENUMBER xmlns:ns20="urn:sap-com:document:sap:rfc:functions"/> </BAPI_MATERIAL_GETALL> </soapenv:Body> </soapenv:Envelope> If i use soapui, replace the empty namespace string at BAPI_MATERIAL_GETALL by "urn:sap-com:document:sap:rfc:functions" then everything works quite well <?xml version="1.0" encoding="UTF-8"?> <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> <BAPI_MATERIAL_GETALL xmlns="urn:sap-com:document:sap:rfc:functions"> <ns1:COMPANYCODE xmlns:ns1="urn:sap-com:document:sap:rfc:functions"/> <ns2:DISTRIBUTIONCHANNEL xmlns:ns2="urn:sap-com:document:sap:rfc:functions"/> ... It would be nice if anyone can tell me how to fix this. P.S. I used Soapui to test the webservice -- it's really a great tool The wsdl is at www.linseisen.de/test.wsdl -- View this message in context: http://www.nabble.com/Empty-Namespace-Promlem-tp20716921p20716921.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
