[wsf-c-dev] [jira] Commented: (WSFPHP-243) Issue with WSHeader and child tag xml

Nandika Jayawardana (JIRA) jira at wso2.org
Thu Mar 13 23:18:45 PDT 2008


    [ https://wso2.org/jira/browse/WSFPHP-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15977#action_15977 ] 

Nandika Jayawardana commented on WSFPHP-243:
--------------------------------------------

If you want to send the mustUnderstand attribute , it should be "mustUnderstand"=>true. Apart from that, the soap header is constructed as specified by the api. If you could attach your wsdl of the service, we can help you figure out the problem.

> Issue with WSHeader and child tag xml
> -------------------------------------
>
>                 Key: WSFPHP-243
>                 URL: https://wso2.org/jira/browse/WSFPHP-243
>             Project: WSO2 WSF/PHP
>          Issue Type: Bug
>         Environment: Linux
>            Reporter: TABET HAKIM
>
> Hi
> I created a header with child but it's not working well, when I send my request I receive auto Authorization failed
> This is my example XML Soap:
> <soap:Header>
> 		<UserAuthentication xmlns="http://www.anite.com/AniteTravelWS">
> 			<Username>user</Username>
> 			<Password>pass</Password>
> 			<Organization>org</Organization>
> 			<Domain>default</Domain>
> 		</UserAuthentication>
> 	</soap:Header>
> My WSHeader is 
> $header = new WSHeader(array("ns"=>"http://www.anite.com/AniteTravelWS",
>                                "name"=>"UserAuthentication",
>                                "data"=>array(new WSHeader(array("name" => "Username", "data" => "user")),
>                                              new WSHeader(array("name" => "Password", "data" => "pass")),
>                                              new WSHeader(array("name" => "Organization", "data" => "org")),
>                                              new WSHeader(array("name" => "Domain", "data" => "default"))),
>                                "mustUnderstand"=>"true"));
> Thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the Wsf-c-dev mailing list