473,327 Members | 1,976 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,327 software developers and data experts.

SOAP Help

MR
I am in dire need of help in trying to get the client code for a web
service to work. i don't have a WSDL for the service so i created my own
ASP.NET service to test with. i converted the DTD files that i was given to
xsd files and used the xsd tool to create the classes. i used those classes
to create the parameters for the web method defined as follows:

[WebMethod]

publicSchema.submitOrderBatchResponse
submitOrderBatch(Schema.submitOrderBatch sob)

{

Schema.submitOrderBatchResponse sbor = new
Schema.submitOrderBatchResponse();

return sbor;
}

The proxy code is generated as:

[System.Diagnostics.DebuggerStepThroughAttribute()]

[System.ComponentModel.DesignerCategoryAttribute("c ode")]

[System.Web.Services.WebServiceBindingAttribute(Nam e="OrderOperationsSoap",
Namespace="http://tempuri.org/")]

public class OrderOperations :
System.Web.Services.Protocols.SoapHttpClientProtoc ol {
/// <remarks/>

public OrderOperations() {

this.Url = "http://localhost/Emulator/Emulator.asmx";

}
/// <remarks/>

[System.Web.Services.Protocols.SoapDocumentMethodAt tribute("http://tempuri.org/submitOrderBatch",
RequestNamespace="http://tempuri.org/",
ResponseNamespace="http://tempuri.org/",
Use=System.Web.Services.Description.SoapBindingUse .Literal,
ParameterStyle=System.Web.Services.Protocols.SoapP arameterStyle.Wrapped)]

[return:
System.Xml.Serialization.XmlElementAttribute(Names pace="http://tempuri.org/submitOrderBatchResponse.xs")]

public submitOrderBatchResponse
submitOrderBatch([System.Xml.Serialization.XmlElementAttribute(Names pace="http://tempuri.org/submitOrderBatch.xs")]
submitOrderBatch sob) {

object[] results = this.Invoke("submitOrderBatch", new object[] {sob});

return ((submitOrderBatchResponse)(results[0]));



my client code works on the local host but when i go out to the real
service it fails.

i created the client in VS.NET 2003 and am referencing the web service that
i created.

I compared the logs of what i am sending to what i am supposed to send and
the SOAP headers appear to be missing some info and some of the tags are
wrong:

This is what is being sent from the proxy

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<soap:Body>

<submitOrderBatch xmlns="urn:OrderOperations">

<sob CustomerBatchID="122" xmlns="http://tempuri.org/submitOrderBatch.xs">

<Customer CustomerID="1097" OrderSource="NVL TEST CUSTOMER (CUSTOMER)" />
<Orders> . . .

This is what i should be sending in the body

<ns1:submitOrderBatch xmlns:ns1="urn:OrderOperations"

SOAP-ENV:encodingStyle="http://xml.apache.org/xml-soap/literalxml">

<orderBatchElement>

1) why does the first line show up? (?xml version ... etc.)

2) how can i get the correct SOAP headers?

3) how do i get the correct tags? ns1:submitOrderBatch
xmlns:ns1="urn:OrderOperations" instead of
xmlns="http://tempuri.org/submitOrderBatch.xs">

thanks very much
Nov 17 '05 #1
1 1553
Hi MR,

Welcome to MSDN newsgroup.
Regarding on this issue, I've also found your another thread in the
microsoft.public.dotnet.framework.webservices
newsgroup. Another MSFT engineer has posted response there. Please feel
free to followup there if you have any further concerns or questions.
Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "MR" <co******@newsgroup.nospam>
| Subject: SOAP Help
| Date: Sun, 21 Aug 2005 01:29:21 +0300
| Lines: 122
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <uz**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups:
microsoft.public.dotnet.framework.webservices,micr osoft.public.dotnet.langua
ges.csharp
| NNTP-Posting-Host: hevron.biconix.com 62.90.12.234
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.languages.csharp:117451
microsoft.public.dotnet.framework.webservices:7585
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| I am in dire need of help in trying to get the client code for a web
| service to work. i don't have a WSDL for the service so i created my own
| ASP.NET service to test with. i converted the DTD files that i was given
to
| xsd files and used the xsd tool to create the classes. i used those
classes
| to create the parameters for the web method defined as follows:
|
| [WebMethod]
|
| publicSchema.submitOrderBatchResponse
| submitOrderBatch(Schema.submitOrderBatch sob)
|
| {
|
| Schema.submitOrderBatchResponse sbor = new
| Schema.submitOrderBatchResponse();
|
| return sbor;
|
|
| }
|
| The proxy code is generated as:
|
| [System.Diagnostics.DebuggerStepThroughAttribute()]
|
| [System.ComponentModel.DesignerCategoryAttribute("c ode")]
|
|
[System.Web.Services.WebServiceBindingAttribute(Nam e="OrderOperationsSoap",
| Namespace="http://tempuri.org/")]
|
| public class OrderOperations :
| System.Web.Services.Protocols.SoapHttpClientProtoc ol {
|
|
| /// <remarks/>
|
| public OrderOperations() {
|
| this.Url = "http://localhost/Emulator/Emulator.asmx";
|
| }
|
|
| /// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAt tribute("http://tempuri.o
rg/submitOrderBatch",
| RequestNamespace="http://tempuri.org/",
| ResponseNamespace="http://tempuri.org/",
| Use=System.Web.Services.Description.SoapBindingUse .Literal,
| ParameterStyle=System.Web.Services.Protocols.SoapP arameterStyle.Wrapped)]
|
| [return:
|
System.Xml.Serialization.XmlElementAttribute(Names pace="http://tempuri.org/s
ubmitOrderBatchResponse.xs")]
|
| public submitOrderBatchResponse
|
submitOrderBatch([System.Xml.Serialization.XmlElementAttribute(Names pace="ht
tp://tempuri.org/submitOrderBatch.xs")]
| submitOrderBatch sob) {
|
| object[] results = this.Invoke("submitOrderBatch", new object[] {sob});
|
| return ((submitOrderBatchResponse)(results[0]));
|
|
|
|
|
|
|
| my client code works on the local host but when i go out to the real
| service it fails.
|
| i created the client in VS.NET 2003 and am referencing the web service
that
| i created.
|
| I compared the logs of what i am sending to what i am supposed to send
and
| the SOAP headers appear to be missing some info and some of the tags are
| wrong:
|
|
|
| This is what is being sent from the proxy
|
| <?xml version="1.0" encoding="utf-8"?>
|
| <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
| <soap:Body>
|
| <submitOrderBatch xmlns="urn:OrderOperations">
|
| <sob CustomerBatchID="122"
xmlns="http://tempuri.org/submitOrderBatch.xs">
|
| <Customer CustomerID="1097" OrderSource="NVL TEST CUSTOMER (CUSTOMER)" />
| <Orders> . . .
|
|
|
| This is what i should be sending in the body
|
| <ns1:submitOrderBatch xmlns:ns1="urn:OrderOperations"
|
| SOAP-ENV:encodingStyle="http://xml.apache.org/xml-soap/literalxml">
|
| <orderBatchElement>
|
|
|
| 1) why does the first line show up? (?xml version ... etc.)
|
| 2) how can i get the correct SOAP headers?
|
| 3) how do i get the correct tags? ns1:submitOrderBatch
| xmlns:ns1="urn:OrderOperations" instead of
| xmlns="http://tempuri.org/submitOrderBatch.xs">
|
| thanks very much
|
|
|

Nov 17 '05 #2

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

Similar topics

3
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts...
0
by: Leonid | last post by:
Thanks a lot for your time! Here is WSDL: <?xml version="1.0" encoding="utf-8"?>
3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
4
by: Jonathan [sbrodolo] | last post by:
Hi there, I am using a LOTUS/DOMINO Web Service in my ASP.Net application and I am having quite a lot of problems. I have managed to solve most of them but this one it really is giving me terrible...
16
by: MR | last post by:
my soap messages to a remote site are failing. as far as i can tell the only differences between what my SOAP message looks liek and what they want are in the SOAP envelope SInce they don't have a...
6
by: A.M-SG | last post by:
Hi, We are developing a SmartClient application and we are planning to expose business objects layer to SmartClient application by using ASP.NET SOAP web services.
0
by: Daniel | last post by:
Hi, I need help signing SOAP/XML. Have been stuck with this for a couple of days now. I get the following error message from the server: "The security token could not be authenticated or...
0
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE...
0
by: Grzegorz Smith | last post by:
Hi All. I 'm learning ZSI to use SOAP and I desperately need help. I'm working on example from tutorial -(examples/server/send_response/ simple/wsdl/). Here are my wsdl files...
2
by: furrypop | last post by:
Hi, I'm trying to get the Perl SOAP::Lite examples to work on a Windows PC, running Apache 2.2.4. Apache is definitely serving CGI scripts, as I've tested a dummy Hello World thing. I'm also...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.