Can PHP write SOAP function base on sample XML file? -


I have a sample XML file that is connected to the SOAP server and "category" for "user1" for "pkg01" Setting Attribute

When running this XML file on the SOAP UI, it works.

And I want to make SOAP function for this task via PHP. But I do not know how to start, and how many functions do I have to call? Anybody please help.

  & lt; Soapenv: envelope xmlns: soapenv = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: ws = "http: // ws .subscriberservices.sandvine.com" & gt; & Lt; Soapenv: header xmlns: svsec = "http://services.sandvine.com" & gt; & Lt; Svsec: username & gt; Username & lt; / Svsec: username & gt; & Lt; Svsec: Password & gt; Password & lt; / Svsec: Password & gt; & Lt; / Soapenv: Header & gt; & Lt; Soapenv: body & gt; & Lt; Ws: SetSubscriberAttributesRequest & gt; & Lt; Debug & gt; False & lt; / Debug & gt; & Lt; BulkOperationFailureBehaviour & gt; AllOrNothing & lt; / BulkOperationFailureBehaviour & gt; & Lt; SetSubscriberAttributeParameterSets & gt; & Lt; SetSubscriberAttributeParameterSet & gt; & Lt; SubscriberKey & gt; & Lt; SubscriberRealmKey & gt; & Lt; Name & gt; Default & lt; / Name & gt; & Lt; / SubscriberRealmKey & gt; & Lt; Name & gt; User01 & lt; / Name & gt; & Lt; / SubscriberKey & gt; & Lt; SubscriberAttributeDefinitionKey & gt; & Lt; Name & gt; Tier & lt; / Name & gt; & Lt; / SubscriberAttributeDefinitionKey & gt; & Lt; VALUE & gt; Pkg01 & lt; / Pricing & gt; & Lt; / SetSubscriberAttributeParameterSet & gt; & Lt; / SetSubscriberAttributeParameterSets & gt; & Lt; ResponseGroups & gt; & Lt; ResponseGroup & gt; Subscriber.Shallow & lt; / ResponseGroup & gt; & Lt; / ResponseGroups & gt; & Lt; / Ws: SetSubscriberAttributesRequest & gt; & Lt; / Soapenv: Body & gt; & Lt; / Soapenv: envelope & gt; XML file not connecting to SOAP server - XML ​​file SOAP represents the request.  

What you need to do is write a PHP SOAP client for your SOAP server, for that you will need it:

  1. The wsdl file for the SOAP server is Yuri ( This is basically a metadata that allows your client to make a request - this functionality allows the server)
  2. Zend_Soap_Client class -

    You can find PHP and Can read more on SOAP

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -