You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Vincent Hauser <vi...@generalwireless.com> on 2005/09/22 10:29:57 UTC

Could not access SOAP header

Hi everyone,

I've skipped creating a SOAP call and am now building the XML and
content parts programmatically and then I create a Socket and write
everyting to that Socket. 

That works, the web service receives the call. But I get 

"Could not access SOAP header" 

and the header is correct (as far as I can see) and am wondering if it
is possible at all to use a plain Socket to make a "soap call"?

Glad for any input! 

Thank you
//Vincent

A fragment of my post with header:

Post Data: POST /mm7extadapter HTTP/1.0
Content-Type: multipart/related; type="text/xml";
start="<E38E18D0D7D6C351E0C577F3408113A3>";
boundary="----=_Part_0_25869435.1127208631975"
Accept: application/soap+xml, appliction/dime, multipart/related, text/*
Host: xxx.xxx.xxx.xxx:xxxx
User-Agent: Axis/1.3
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 6761
Authorization: Basic lalala


------=_Part_0_25869435.1127208631975
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <E38E18D0D7D6C351E0C577F3408113A3>


<?xml version="1.0" encoding="UTF-8"?>
 <soap-env:Envelope
       xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ soap-
envelope.xsd">
<soap-env:Header>        
    <mm7:TransactionID             
        soap-
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"              
        soap-env:actor="1""          
        soap-env:mustUnderstand="1"             
        xmlns:SOAP-
ENC="http://schemas.xmlsoap.org/soap/encoding/"              

xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2  mm7-extended-1-1.xsd">
        001
    </mm7:TransactionID> 
</soap-env:Header>

<soap-env:Body>
        <SubmitReq
xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-2 mm7-extended-1-1.xsd">
...