sending reference variables to webservice

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

sending reference variables to webservice

xzdead
Hi

I need to call a function in a webservice which receives two parameters:

public lcError xml_generate(int idobject, ref string xmlcontents)

the function returns an enum value depending on the execution was or not successfull and fills the xmlcontents variable.


How can i send the parameters to the webservice? I have tried

<xforms:instance id="ws-request">
  <SOAP-ENV:Envelope>
      <SOAP-ENV:Body>
          <service:Check xmlns:m="http://www.tedial.com/localcaptureservice/">
        <service:tiporesp>2</service:tiporesp>
        <service:xmlContents/>
        </service:Check>                                               
     </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>
</xforms:instance>

 <xforms:instance id="ws-response">
        <xmlContents/>
</xforms:instance>



But i always get the message:

Request format is not valid: text/xml




Any help please?

Thanks in advance





Reply | Threaded
Open this post in threaded view
|

Re: sending reference variables to webservice

Alessandro Vernet
Administrator
On Mon, Mar 17, 2008 at 7:41 AM, xzdead <[hidden email]> wrote:

>  I need to call a function in a webservice which receives two parameters:
>
>  public string xml_generate(int idobject, ref string xmlcontents)
>
>
>  How can i send the parameters to the webservice? I have tried
>
>  <xforms:instance id="ws-request">
>   <SOAP-ENV:Envelope>
>       <SOAP-ENV:Body>
>           <service:Check
>  xmlns:m="http://www.tedial.com/localcaptureservice/">
>                 <service:tiporesp>2</service:tiporesp>
>                 <service:xmlContents/>
>         </service:Check>
>      </SOAP-ENV:Body>
>   </SOAP-ENV:Envelope>
>  </xforms:instance>
Do you know if your service is using SOAP 1.1 or SOAP 1.2?
In your XForms, what is the namespace for the prefix "SOAP-ENV"?

We do the right thing for SOAP 1.1 (change the Content-type header to
text/xml in the HTTP header), but I am wondering if we also don't
incorrectly do this for SOAP 1.2. For reference, this is the section
of the XForms specification that covers this:

http://www.w3.org/TR/xforms11/#SOAP-HTTP-Binding

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws