Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How to send XML to WCF Web Service
Old 08-25-2010, 06:48 AM How to send XML to WCF Web Service
Banned

Posts: 408
Name: mushget
Trades: 0
I am having difficulty in sending a block of XML to a WCF Web Service using the NuSoap library.

This is what I have so far:


PHP Code:
 $xmlRequest = '<?xml version="1.0" encoding="utf-8"?>';
$xmlRequest .= '<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/">';
$xmlRequest .= '<soap:Body>';
$xmlRequest .= '<GetAddressCollection>';
$xmlRequest .= '<postCode>'.$postcode.'</postCode>';
$xmlRequest .= '</GetAddressCollection>';
$xmlRequest .= '</soap:Body>';
$xmlRequest .= '</soap:Envelope>';

$client = new nusoap_client('http://website/ws/service.asmx?WSDL', true);

return $client->send('GetAddressCollection', $xmlRequest);
Has anyone manged to do this or could me out?

Thanks
mushget is offline
Reply With Quote
View Public Profile Visit mushget's homepage!
 
 
Register now for full access!
Old 08-28-2010, 02:48 PM Re: How to send XML to WCF Web Service
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And what is happening (or not)??
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to How to send XML to WCF Web Service
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31392 seconds with 12 queries