473,382 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Soap Message from WSDL dynamically

Okay i feel like an complete idiot.

I have a wsdl file I need to get the body of the Message that would be
sent from a client.

I am trying to do this in C# .Net20.

I can parse the WSDL just fine using the the framework but can not find
any method of generating the the body of message for any give
operation.

I know i can create a proxy and make the call via it but I need the
body of the message.

ie

POST /smartupdateservice/smartupdate.asmx HTTP/1.1
Host: scotty
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.xxx.com/CheckForUpdates"

<?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>
<CheckForUpdates xmlns="http://www.spidynamics.com/">
<licenseKey>string</licenseKey>
<language>string</language>
<productName>string</productName>
<versionXML>string</versionXML>
<startLastUpdatedDate>dateTime</startLastUpdatedDate>
<endLastUpdatedDate>dateTime</endLastUpdatedDate>
</CheckForUpdates>
</soap:Body>
</soap:Envelope>

Thanks in advance
Robert

Jun 28 '06 #1
1 5881
Robert,

There are tools that allow you to "sniff" the soap call and write out the
entire soap envelope.

http://www.fiddlertool.com is an example of one.

Kevin

"Robert" wrote:
Okay i feel like an complete idiot.

I have a wsdl file I need to get the body of the Message that would be
sent from a client.

I am trying to do this in C# .Net20.

I can parse the WSDL just fine using the the framework but can not find
any method of generating the the body of message for any give
operation.

I know i can create a proxy and make the call via it but I need the
body of the message.

ie

POST /smartupdateservice/smartupdate.asmx HTTP/1.1
Host: scotty
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.xxx.com/CheckForUpdates"

<?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>
<CheckForUpdates xmlns="http://www.spidynamics.com/">
<licenseKey>string</licenseKey>
<language>string</language>
<productName>string</productName>
<versionXML>string</versionXML>
<startLastUpdatedDate>dateTime</startLastUpdatedDate>
<endLastUpdatedDate>dateTime</endLastUpdatedDate>
</CheckForUpdates>
</soap:Body>
</soap:Envelope>

Thanks in advance
Robert

Sep 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Meh-Lit Kim | last post by:
Hi All, I'd like to use SOAP 1.2 messaging in a document-centric fashion. Does anyone know - 1. What to do to validate an incoming SOAP message ? Do people write an XML schema for their...
4
by: jm | last post by:
I understand how an XML formatted SOAP message is used to request items from a web service and how the XML formatted SOAP response is used. I am still missing the big picture, however. When is...
5
by: mark kurten | last post by:
i have a requirement to send a soap message to a web service. i'm familiar with the soap toolkit using vb. i need to generate a xml document which i think i can do, but i don't know how to...
6
by: Sai | last post by:
Friends, Any body know how to parse incoming SOAP message. Do I have to create web-services to do this. I know nothing about how to do it. Any direction to start would be great. Thanks, K
1
by: TexasAggie96 | last post by:
I am a VB.NET application developer that has used WSDL Web services before but now I am tasked with sending data to a non-WSDL web service by creating a SOAP message in an XML package and POSTing...
6
by: Peter van der veen | last post by:
Hi I have the following problem. I'm calling a webservice from within a VB.net 2005 Windows program. For this i got a WSDL file and loaded that in VB. Until now i just call the webservice and...
4
by: TraceyAnnison | last post by:
We have Java webservices implemented with Spring and Axis, and we are recieving SOAP messages from an external party. When they get the format of these messages wrong, they don't know how to fix them...
2
by: =?Utf-8?B?QWplaw==?= | last post by:
I have a client which consumes Web Service (WCF - .NET Framework 3.0). I would like to see a Soap message generated when a client calls a Web Service method. In debug mode, I just see the method...
3
by: ZAAN | last post by:
Hi, I'm developing an application in PHP5, which interacts with another system written in Delphi (of another company). I've prepared the Web Service - WSDL, Client and Server (only stub) side....
0
by: Philluminati | last post by:
I have a Perl SOAP Server which returns this SOAP Message when invoked: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance"...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.