It means you have not specified a SOAPAction header in the HTTP request. 

Also keep in mind that the MS SOAP toolkit is gone out of support this month.  

You should move to a supported product/platform.   Like pocketsoap.  Another 
alternative that may work for simple cases is to just manually cons a SOAP 
envelope. 

Eg, the enclosed.



-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 9:16 AM
To: [email protected]
Subject: Re: Beginner question : no soap action header ...

I suggest you ask this question on the MS SOAP discussion list.
Or better yet, try using PocketSoap (www.pocketsoap.com) in place of MSSOAP.

Anne

On 4/13/05, Mark Breitner <[EMAIL PROTECTED]> wrote:
> Hi - thanks for your answer, but by removing the ?wsdl from 
> SOAPClient.mssoapinit another error occurs :
> 
> "
> WSDLReader: XML Parser failed at linenumber 1, lineposition 1, reason is:
> Ung�ltig auf der obersten Ebene im Dokument.
> 
> WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057 - 
> WSDLReader:XML Parser failed at linenumber 1, lineposition 1, reason is:
> [...]
> "
> 
> So it looks like this call needs the wsdl file - especially because it 
> is a web service and can�t directly connewct to java.
> I expect the eeror somewhere else.
> 
> Do you have another idea ?
> 
> Thanks,
> Mark
> 
> > Try removing  ?wsdl from SOAPClient.mssoapinit
> >
> > If you call with ?wsdl, Axis returns the WSDL file for the Web 
> > Service
> >
> >
> > Jos� de Jes�s Ruiz Gonzalez
> > Departamento de Sistemas
> > M�xico Asistencia S.A. de C.V.
> > Sistema Internacional de Asistencia Mapfre
> >
> > * mailto:[EMAIL PROTECTED]
> > *(52) 55 + 54801298
> >
> > *Fax(52) 55 + 56112011
> >
> > <http://www.mexicoasistencia.com/>
> >
> >
> > -----Mensaje original-----
> > De: Mark Breitner [mailto:[EMAIL PROTECTED] Enviado el: Martes, 
> > 12 de Abril de 2005 10:30 a.m.
> > Para: [email protected]
> > Asunto: Beginner question : no soap action header ...
> >
> > HI,
> >
> > I want to connect via visual basic  script to axis.
> >
> > everytime I try a little example I get the response :
> >
> > "no SOAPAction header!".
> >
> > What does this mean ?
> >
> > I do nothing but trying to connect to the simple Calculator 
> > webservice example.
> >
> > Here is my vb code :
> >
> >
> > "
> > dim SOAPClient
> > set SOAPClient = createobject("MSSOAP.SOAPClient") on error resume 
> > next
> > SOAPClient.mssoapinit("http://localhost:8080/axis/Calculator.jws?wsdl";)
> >   if err then
> >     wscript.echo SOAPClient.faultString
> >     wscript.echo SOAPClient.detail
> >   end if
> > wscript.echo SOAPClient.add("5","6")
> >   if err then
> >     wscript.echo SOAPClient.faultString
> >     wscript.echo SOAPClient.detail
> >   end if
> > "
> >
> >
> > --
> > +++ NEU: GMX DSL_Flatrate! Schon ab 14,99 EUR/Monat! +++
> >
> > GMX Garantie: Surfen ohne Tempo-Limit! http://www.gmx.net/de/go/dsl
> >
> 
> --
> +++ GMX - Die erste Adresse f�r Mail, Message, More +++
> 
> 1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail
>
// Soap-v4.js
// 
// This sample shows how to invoke a .NET web service using ServerXMLHTTP
// and MSXML4.
// 
// Wed, 26 May 2004  03:55
// 

 var cityToLookup= "Paris TX";
 var url= "http://cheeso.members.winisp.net/zips/ZipService.asmx";;

 // build the SOAP-formatted request via the DOM
 var node1, node2, node3; 
 var req = new ActiveXObject("MSXML2.DOMDocument.4.0");
 var root= req.createNode(1, 
"Envelope","http://schemas.xmlsoap.org/soap/envelope/";);
 req.appendChild(root);
 node1= req.createNode(1, "Body","http://schemas.xmlsoap.org/soap/envelope/";);
 root.appendChild(node1);
 node2= req.createNode(1, "CityToZip","http://dinoch.dyndns.org/webservices/";);
 node1.appendChild(node2);
 node3= req.createNode(1, "city","http://dinoch.dyndns.org/webservices/";);
 node3.text= cityToLookup;
 node2.appendChild(node3);

 WScript.Echo("Looking up zipcodes for '" + cityToLookup + "'..." );

 WScript.Echo("Sending: \n" + req.xml ) ;

 var srvXMLHTTP;
 srvXMLHTTP = new ActiveXObject("MSXML2.ServerXMLHTTP.4.0");

 // uncomment the line below, if you want to examine the output via  proxytrace 
or similar
 // see also: 
http://msdn.microsoft.com/library/en-us/xmlsdk/html/xmmthsetProxy.asp
 // you can also use the command-line tool "proxycfg.exe" to set the proxy for 
MSXML . 
 //srvXMLHTTP.setProxy(2, "localhost:3128");

 srvXMLHTTP.open ("POST", url, false);

 // SOAPAction is required in this case by .NET
 srvXMLHTTP.setRequestHeader("SOAPAction", 
"http://dinoch.dyndns.org/webservices/CityToZip";);
 srvXMLHTTP.setRequestHeader("Content-Type", "text/xml");
 srvXMLHTTP.send(req.xml); 


 var resp = new ActiveXObject("MSXML2.DOMDocument.4.0");
 resp.loadXML(srvXMLHTTP.responseXML.xml);

 WScript.Echo("\nresult: " + resp.xml + "\n");


 // use XPAth to get the output: 
//  resp.setProperty("SelectionLanguage", "XPath");
//  resp.setProperty("SelectionNamespaces", 
"xmlns:app=\"http://dinoch.dyndns.org/webservices/\"; " +
//      "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"";);

//  var nodeList=  
resp.selectNodes("//soap:Envelope/soap:Body/app:CityToZipResponse/app:CityToZipResult/app:string");
//  WScript.Echo("found " + nodeList.length + " results:");
//  for(i = 0; i < nodeList.length; i++ ) {
//    WScript.Echo("  " + (i+1) + ". " + nodeList[i].text );
//  }

Reply via email to