Difference between two soap requests

后端 未结 3 1223
小蘑菇
小蘑菇 2021-01-15 19:16

My SOAP Request




        
3条回答
  •  星月不相逢
    2021-01-15 20:03

    They are not the same. To get rid of the BOGUS node you need to use this:

    $strHeaderComponent_Session = "$theVarWithTheIDGoesHere";
    $objVar_Session_Inside = new SoapVar($strHeaderComponent_Session, XSD_ANYXML,
                                         null, null, null);
    $objHeader_Session_Outside = new SoapHeader('http//ws.apache.org/namespaces/axis2', 
                                               'SessionHeader', $objVar_Session_Inside);
    
    // More than one header can be provided in this array.
    $client->__setSoapHeaders(array($objHeader_Session_Outside));
    

提交回复
热议问题