Hi
I continuesly keep on having problems with setting the SoapHeaders(see my earlier post) from today and yesterday. I was told that if you call the method  call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); the XSI types will not be sent but they do.
I need to create the following XML below. I have generated the stubs from the WSDL http://basicservices.webservice.test.krak.dk/telesearch.asmx?WSDL
by using a sniffer program I can see that the XML soap being created by AXIS stubs is different. See the XML Soap env
at the end of the mail. Please note the SoapHeader which looks different, I need to avoid that the xsi:type is set because
the webservice provider doesn't accept this format.
I am sorry to post the same question again but I am getting desperate because I can't get it to work!
Thanks everyone!
Cheers
Tommy
 
 
*************XML Wanted by webservice provider********************** 
 
<?xml version="1.0" encoding="utf-8"?>
<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:Header>
<KrakSoapHeader xmlns="http://webservice.krak.dk/">
<ticket>015BCE13CF80F747DF826AD2F3B995622C6AD7FDCED1F2E3E6D9093E3547F7</ticket>
<product>iip-oph-fsome</product>
</KrakSoapHeader>
</soap:Header>
<soap:Body>
<GetTeleByTn xmlns="http://webservice.krak.dk/">
<telephoneNumber>45956500</telephoneNumber>
</GetTeleByTn>
</soap:Body>
</soap:Envelope>
*******************************************
XML sent by AXIS stubs
<ns1:KrakSoapHeader soapenv:mustUnderstand="0"
xmlns:ns1="http://webservice.krak.dk/">
         <ticket xsi:type="xsd:string">B8E941091D413058FE9D8C153C6B3E49BD5639706EA19D4CEB
0D772E9CD385998A0C518B3A4F033AF542AFC3947A613638C3727D8FAB52E1ECD4DACBB3
ECDAA4DF4ACDBEB573B25CE097EDCC4A11BD72</ticket>
         <product xsi:type="xsd:string">iip-oph-formudfyl</product>
  </ns1:KrakSoapHeader>
I desperately need to avoid the xsi type of the ticket/product child
elements and if possible also avoid the ns1: part of the KrakSoapHeader
I just can't seem to get it working!


Reply via email to