[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Try to consume a Webservice
Hi Loek,
Thank you for your quick answer and your advice.
Now it works.
Best regards
Jan
Am 06.08.2012 12:25, schrieb Loek Maartens:
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=[1]"http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd=[2]"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"
[3]<jgv@xxxxxxxx>
To: "HTTPAPI and FTPAPI Projects" [4]<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=[5]"http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd=[6]"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
"</xsd:kistst>".
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:
[7]http://www.scottklement.com/mailman/listinfo/ftpapi
--------------------------------------------------------------------
---
--------------------------------------------------------------------
---
This is the FTPAPI mailing list. To unsubscribe, please go to:
[8]http://www.scottklement.com/mailman/listinfo/ftpapi
--------------------------------------------------------------------
---
References
1. http://schemas.xmlsoap.org/soap/envelope/
2. http://kistst.wsbeans.iseries/xsd
3. mailto:jgv@xxxxxxxx
4. mailto:ftpapi@xxxxxxxxxxxxxxxxxxxxxx
5. http://schemas.xmlsoap.org/soap/envelope/
6. http://kistst.wsbeans.iseries/xsd
7. http://www.scottklement.com/mailman/listinfo/ftpapi
8. 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
-----------------------------------------------------------------------