Home » Php » Invoking java soap service from php with local wsdl file provided and an xml file

Invoking java soap service from php with local wsdl file provided and an xml file

Posted by: admin August 13, 2018 Leave a comment

Questions:

I have an already working backend soap service which uses java and xml as an input.Now I am developing a front end to it using php.

Also I have wsdl file placed in my local and a .xml file something like this:

 <?xml version="1.0"?>
    <Input>
             <a>
                <a1>
                   <a2>text here</a2>
                   <b2>1234567890</b2>
                </a1>
                <c>
                   <c1>2018-04-09</c1>
    ...... goes on
    </Input>

Front end is developed, now I have to call the soap service using php. I am newbee in web services and php so dont have much idea about this.
Can anyone tell me how should I use my local wsdl file and invoke the soap service with the xml as an input.Also the xml should have soap headers when calling to the service.I have xmlns:m path with me.
Please suggest the solution.

Answers: