Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > ASP.NET Web Service (non-standard SOAP)

Reply
Thread Tools

ASP.NET Web Service (non-standard SOAP)

 
 
Spikus
Guest
Posts: n/a
 
      02-19-2004
Hi,

I'm working with a SOAP client which uses non-standard headers and a
non-standard doc...

It uses the "SOAPAction" header to supply an authentication key (I've
got around the problem of IIS rejecting this)

The document seems reasonably valid but, I think the "." is confusing
IIS


Here's an example of an incoming SOAP request (the format cannot be
changed):

==== HEADERS ====
POST / HTTP/1.0
Host: #.#.#.#:#
User-agent: SOAP.py hwSOAP 2.0.2 (actzero.com)
Content-type: text/xml; charset="UTF-8"
Content-length: 703
SOAPAction: "authcode-1234567890"

==== DOCUMENT ====
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlnssd="http://www.w3.org/1999/XMLSchema"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlnssi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<MailServer.CheckSpool>
<v1 xsi:type="xsd:string">mail.theserver.com</v1>
<v2 xsi:type="xsd:string">testuser</v2>
<v3 xsi:type="xsd:string">testpass</v3>
<v5 xsi:type="xsd:int">0</v5>
</MailServer.CheckSpool>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
************************************************** **********************

================================================== ==============

Here's my code:

<%@ WebService Language="C#" Class="testbed" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Services.Description;
using System.Xml.Serialization;


[SoapDocumentService(RoutingStyle=SoapServiceRoutin gStyle.RequestElement)]


[WebService(Namespace="urn:")]
public class testbed
{
[WebMethod]
[SoapDocumentMethod(RequestElementName="MailServer. CheckSpool")]

public int CheckSpool(string Server, string Username, string
Password)
{
return 1;
}

}



And here's the SOAP.Fault returned:

<Fault soap:Client: The request element <MailServer.CheckSpool
xmlns=''> was not recognized.>


Any ideas on how to resolve this would be appreciated...

Thanks

~ Spikus
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does timer in Web Service Global.asax block my Web Service from processing web-site requests? Leo Violette ASP .Net Web Services 0 04-17-2009 12:39 AM
'web service call failed: 500' using ajax hovermenu and web service Not Me ASP .Net 1 06-05-2007 03:09 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
Calling a Web Service using Axis, from within an Axis Web Service running under Tomcat hocho888 Java 1 04-29-2005 08:26 PM
Web Service that calls an external Web Service Isaias Formacio Serna ASP .Net Security 5 02-02-2004 07:38 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57