[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Try to consume a Webservice



Hi Jan,

</xsd:_P0AUSFUEHRUNG is missing the end >
</xsd:_P0EXTARTNR is also missing the end >

Also you might want to trim your element data and tags in order to make a better xml string.

What you did send (after tidying up) is:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://kistst.wsbeans.iseries/xsd";>
<soapenv:Header/>
<soapenv:Body>
<xsd:kistst>
<xsd:args0>
<xsd:_P0ANZAHL>45</xsd:_P0ANZAHL>
<xsd:_P0AUSFUEHRUNG>000123</xsd:_P0AUSFUEHRUNG
<xsd:_P0EXTARTNR>15001012</xsd:_P0EXTARTNR
<xsd:_P0EXTKDNR>150001</xsd:_P0EXTKDNR>
<xsd:_P0FARBE>000987</xsd:_P0FARBE>
<xsd:_P0FIRMA>85</xsd:_P0FIRMA>
<xsd:_P0LTCODE>A</xsd:_P0LTCODE>
<xsd:_P0VERKAUFSSTELLE>47</xsd:_P0VERKAUFSSTELLE>
<xsd:_P0WERK>187</xsd:_P0WERK>
</xsd:args0>
</xsd:kistst>
</soapenv:Body>
</soapenv:Envelope>

Now can see what is missing. (I alsways use notepad ++ with its xml plugin to verify my xml strings.)

Kind regards,

Loek Maartens.


----- Original Message ----- From: "Jan Grove Vejlstrup" <jgv@xxxxxxxx>
To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, August 06, 2012 11:50 AM
Subject: Try to consume a Webservice


Hello

I'm trying to consume a webservice kistst with this wsdl:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://kistst.wsbeans.iseries/xsd";>
   <soapenv:Header/>
   <soapenv:Body>
      <xsd:kistst>
         <xsd:args0>
            <xsd:_P0ANZAHL>?</xsd:_P0ANZAHL>
            <xsd:_P0AUSFUEHRUNG>?</xsd:_P0AUSFUEHRUNG>
            <xsd:_P0EXTARTNR>?</xsd:_P0EXTARTNR>
            <xsd:_P0EXTKDNR>?</xsd:_P0EXTKDNR>
            <xsd:_P0FARBE>?</xsd:_P0FARBE>
            <xsd:_P0FIRMA>?</xsd:_P0FIRMA>
            <xsd:_P0LTCODE>?</xsd:_P0LTCODE>
<xsd:_P0VERKAUFSSTELLE>?</xsd:_P0VERKAUFSSTELLE>
            <xsd:_P0WERK>?</xsd:_P0WERK>
         </xsd:args0>
      </xsd:kistst>
   </soapenv:Body>
</soapenv:Envelope>

I am receiving the attached debug.file, which tells me, that the
element-typ ""  is not compatible with the expected
"&lt;/xsd:kistst&gt;".

I can't find the error in my SOAP-request, that you can see in the
debug-file. Can someone please help me?

Thank you in advance.

Best regards

Jan




--------------------------------------------------------------------------------


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------