XML qualifier for namespaces for accessing web services 
Author Message
 XML qualifier for namespaces for accessing web services

I am tring to access Amazon's web services using the SOAP api in
visualworks. I used the following script:

client := WsdlClient new
loadFrom:' http://www.*-*-*.com/ '
request := SoapRequest new.
request port:client config anyPort.
argDict := Struct new at:#asin put:'B000067RPH';
                at:#page put:'1';
                at:#mode put:'music';
                at:#tag put:'webservices-20';
                at:#type put:'lite';
                at:#devtag put:'put your id';
                at:#format put: 'xml';
                at:#version put:'2.1'.
 request SmalltalkEntity:
      (Message selector: #AsinSearchRequest arguments: (Array with:
request value.

The following request was generated:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:xsi=" http://www.*-*-*.com/ ;
xmlns:xsd=" http://www.*-*-*.com/ ;
xmlns:SOAP-ENV=" http://www.*-*-*.com/ ;><SOAP-ENV:Body><m:AsinSearchRequest
SOAP-ENV:encodingStyle=" http://www.*-*-*.com/ ;
xsi:type="xsd:string">lite</type><devtag xsi:type="xsd:string">your
id</devtag><version xsi:type="xsd:string">2.1</version></AsinSearchRequest></m:AsinSearchRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>'

The requests returns a Soap fault. Folks at amazon pointed out that
the qualifier "m"(="urn:PI/DevCentral/SoapService") should be replaced
by "typens".
I am not sure how the qualifier has the default value of "m" and also
how to reset it to "typens".

Any help will be greatly appreciated.


Sat, 30 Apr 2005 02:58:26 GMT  
 [ 1 post ] 

 Relevant Pages 

1. SOAP/XML Web Services searching

2. minidom toxml() not emitting attribute namespace qualifier

3. Accessing Amazon Web services using WsdlClient class Visualworks 7

4. Idoox releases framework for accessing SOAP Web Services from JavaScript

5. Qualifiers within qualifiers?

6. VA Smalltalk Google Web Service Service Client and Server Simulator Example

7. Help please for using tcl to access web services & XML data

8. XML Namespaces in sgml-parser

9. SAX/DOM/SXML parsers with support for XML Namespaces and validation

10. XML namespaces and xmllib

11. TCLSOAP & XML namespaces

12. Cool XML-RPC service


Powered by phpBB® Forum Software