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 01:21:59 UTC

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











Re: Exception:attribute must be specified for every parameter.

Posted by Prasad Vangavolu <pr...@varros.com>.
Hi,

After I tried with modified Listener.asp its working fine (thanks to James
Snell). Only thing is MS Wizard generates Wrong ProgId value if I generate
.asp file from ATL COM Dll/Exe. After I changed it to correct ProgId its
working fine.

Thanks
Prasad Vangavolu


----- Original Message -----
From: Benjamin Rich <be...@camtec.com>
To: <so...@xml.apache.org>
Sent: Monday, November 13, 2000 2:19 AM
Subject: Re: Exception:attribute must be specified for every parameter.


> Hi,
>
> I'm not a SOAP expert, but I did have the same problem.  I think it's
> not possible to use Apache SOAP for a client with MS SOAP Toolkit for
> the server, because MS knows the types of parameters and return values
> by looking at an SDL file, while Apache has to discover the type in the
> SOAP message itself.  Since the MS server doesn't include this
> information in the SOAP response, you get this error.
>
> James Snell has modified the listener.asp and rope.dll used by MS SOAP
> to fix incompatibility between MS SOAP and Apach SOAP.  I haven't tried
> his solution yet, but check out
>
> http://www.soap-wrc.com/
>
> Ben
>
>
> Prasad Vangavolu wrote:
> >
> > 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
>
> --
>
> Benjamin Rich
> CTB CAMTEC Software GmbH Berlin / Germany
> D-12435 Berlin, An den Treptowers 1
> Phone: (+49)30-936941-0  Fax: (+49)30-936941-24
> http://www.camtec.com    mailto:benjamin.rich@camtec.com
>


Re: Exception:attribute must be specified for every parameter.

Posted by Prasad Vangavolu <pr...@varros.com>.
Hi,

After I tried with modified Listener.asp its working fine (thanks to James
Snell). Only thing is MS Wizard generates Wrong ProgId value if I generate
.asp file from ATL COM Dll/Exe. After I changed it to correct ProgId its
working fine.

Thanks
Prasad Vangavolu


----- Original Message -----
From: Benjamin Rich <be...@camtec.com>
To: <so...@xml.apache.org>
Sent: Monday, November 13, 2000 2:19 AM
Subject: Re: Exception:attribute must be specified for every parameter.


> Hi,
>
> I'm not a SOAP expert, but I did have the same problem.  I think it's
> not possible to use Apache SOAP for a client with MS SOAP Toolkit for
> the server, because MS knows the types of parameters and return values
> by looking at an SDL file, while Apache has to discover the type in the
> SOAP message itself.  Since the MS server doesn't include this
> information in the SOAP response, you get this error.
>
> James Snell has modified the listener.asp and rope.dll used by MS SOAP
> to fix incompatibility between MS SOAP and Apach SOAP.  I haven't tried
> his solution yet, but check out
>
> http://www.soap-wrc.com/
>
> Ben
>
>
> Prasad Vangavolu wrote:
> >
> > 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
>
> --
>
> Benjamin Rich
> CTB CAMTEC Software GmbH Berlin / Germany
> D-12435 Berlin, An den Treptowers 1
> Phone: (+49)30-936941-0  Fax: (+49)30-936941-24
> http://www.camtec.com    mailto:benjamin.rich@camtec.com
>


Re: Exception:attribute must be specified for every parameter.

Posted by Benjamin Rich <be...@camtec.com>.
Hi,

I'm not a SOAP expert, but I did have the same problem.  I think it's
not possible to use Apache SOAP for a client with MS SOAP Toolkit for
the server, because MS knows the types of parameters and return values
by looking at an SDL file, while Apache has to discover the type in the
SOAP message itself.  Since the MS server doesn't include this
information in the SOAP response, you get this error.

James Snell has modified the listener.asp and rope.dll used by MS SOAP
to fix incompatibility between MS SOAP and Apach SOAP.  I haven't tried
his solution yet, but check out

http://www.soap-wrc.com/

Ben


Prasad Vangavolu wrote:
> 
> 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

-- 

Benjamin Rich
CTB CAMTEC Software GmbH Berlin / Germany
D-12435 Berlin, An den Treptowers 1
Phone: (+49)30-936941-0  Fax: (+49)30-936941-24
http://www.camtec.com    mailto:benjamin.rich@camtec.com

Re: Exception:attribute must be specified for every parameter.

Posted by Benjamin Rich <be...@camtec.com>.
Hi,

I'm not a SOAP expert, but I did have the same problem.  I think it's
not possible to use Apache SOAP for a client with MS SOAP Toolkit for
the server, because MS knows the types of parameters and return values
by looking at an SDL file, while Apache has to discover the type in the
SOAP message itself.  Since the MS server doesn't include this
information in the SOAP response, you get this error.

James Snell has modified the listener.asp and rope.dll used by MS SOAP
to fix incompatibility between MS SOAP and Apach SOAP.  I haven't tried
his solution yet, but check out

http://www.soap-wrc.com/

Ben


Prasad Vangavolu wrote:
> 
> 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

-- 

Benjamin Rich
CTB CAMTEC Software GmbH Berlin / Germany
D-12435 Berlin, An den Treptowers 1
Phone: (+49)30-936941-0  Fax: (+49)30-936941-24
http://www.camtec.com    mailto:benjamin.rich@camtec.com