You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Prasad Vangavolu <pr...@varros.com> on 2000/11/09 19:21:39 UTC

MS Soap ASP Listener Fix

RE: Exception:attribute must be specified for every parameter.Thanks Boris. 
I am looking for ASP Listener fix. Please help me if some one has it.

Thanks
Prasad Vangavolu
  ----- Original Message ----- 
  From: Boris Mikhalevsky 
  To: 'soap-user@xml.apache.org' 
  Sent: Thursday, November 09, 2000 10:05 AM
  Subject: RE: Exception:attribute must be specified for every parameter.


  This is compatibility issue. 
  Unlike MS Soap Apache Soap requires to provide type information for every parameter. 

  Compare 
    Apache SOAP 
    
  <SOAP:Body> 
    <GetStockQuoteResponse> 
     <price xsi:type="xsd:string">112.2</price> 
    </GetStockQuoteResponse> 
   </SOAP:Body> 
  </SOAP:Envelope> 
    
  MS SOAP will pass just <price>112.2</price> 
    

  There is ASP listener around that fixes that problem but I don't know about any 
  ISAPI fix. 




  -----Original Message----- 
  From: Prasad Vangavolu [mailto:prasadvv@varros.com] 
  Sent: Wednesday, November 08, 2000 6:22 PM 
  To: soap-user@xml.apache.org 
  Subject: Exception:attribute must be specified for every parameter. 



  Hello Everybody, 

  I am trying to communicate with MS soap server from Apache client. 

  I am using ATL to create COM objects. 

  Server method declaration 

  HRESULT GetData([out,retval]BSTR *str)  // which returns String and does not 
  take any input args 

  Client side my java code looks like this 

          Call call = new Call (); 
          call.setTargetObjectURI (URI); 

          call.setMethodName ( methodName ); 

          call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC ); 
          Vector params = new Vector() 
          call.setParams (params) 



  I am able to communicate with MS soap server and get the soap response. 
  I can see the result in the debug mode. 

  But when it comes to unmarshaling the returned data its throughing this 
  exception. 

  exception  The 'http://www.w3.org/1999/XMLSchema-instance:type' attribute 
  must be specified for every parameter. 

  In this case there are no parameters involved in this except return value. 

  Is there any problem with MS soap or am I missing something in my client 
  code? 

  Thanks in advance 
  Prasad Vangavolu