/    Sign up×
Community /Pin to ProfileBookmark

submit xml via soap?

I’ve sent xml to a server before using curl… How do I do that with SOAP? I need to send xml similar to the example seen below. Can anyone point me in the direction of some PHP code to do this?

[code]
<?xml version=”1.0″ encoding=”utf-8″?>
<soap:Envelope xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”>
<soap:Body>
<order xmlns=”CompanyXyzOrder”>
<partnerid>string</partnerid>
<orderdate>string</orderdate>
<orderid>string</orderid>
<giftnote>string</giftnote>
<shippinginfo>
<specialinstructions>string</specialinstructions>
<firstname>string</firstname>
<lastname>string</lastname>
<address1>string</address1>
<address2>string</address2>
<city>string</city>
<state>string</state>
<zip>string</zip>
<country>string</country>
<phone>string</phone>
<email>string</email>
<shippingmethod>string</shippingmethod>
</shippinginfo>
<orderitems>
<Item productid=”string”>
<images>
<Image xsi:nil=”true” />
<Image xsi:nil=”true” />
</images>
<quantity>int</quantity>
<name>string</name>
</Item>
</orderitems>
</order>
</soap:Body>
</soap:Envelope>
[/code]

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@chazzyJul 20.2008 — SOAP is used with web services. i would suggest you look at one of the many [url="http://www.google.com/search?q=php+soap+library"]php soap libraries[/url] for this task.
×

Success!

Help @susancbk spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...