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

Antwort: Try to consume a Webservice



   I think there is something missing in your request, the red lines are
   those which are expected and black before are
   those which you send:
   <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:_P0AUSFUEHRUNG>000123                </xsd:_P0AUSFUEHRUNG>
   <xsd:_P0EXTARTNR>15001012                </xsd:_P0EXTARTNR
   <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>
   I hope this helps
   Kind regards
   Mit freundlichen Grüßen
   ----------------------------------------
   Andreas Nicoladoni
   ----------------------------------------

      Jan Grove Vejlstrup <jgv@xxxxxxxx>
      Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx

      06.08.2012 11:56

                       Bitte antworten an
   HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>


                                                                        An

   HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>

                                                                     Kopie

                                                                     Thema

   Try to consume a Webservice

   Hello
   I'm trying to consume a webservice kistst with this wsdl:
   <soapenv:Envelope
   xmlns:soapenv="[3]http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:xsd="[4]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:
   [5]http://www.scottklement.com/mailman/listinfo/ftpapi
   -----------------------------------------------------------------------

References

   1. http://schemas.xmlsoap.org/soap/envelope/
   2. http://kistst.wsbeans.iseries/xsd
   3. http://schemas.xmlsoap.org/soap/envelope/
   4. http://kistst.wsbeans.iseries/xsd
   5. http://www.scottklement.com/mailman/listinfo/ftpapi
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V6R1M0

http_url_post(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: WEMAG.ch
DNS server found: 195.186.1.110
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /web/services/KISTST HTTP/1.1
Host: chwemag1:10010
User-Agent: http-api/1.24
Content-Type: text/xml; charset=UTF-8
SOAPAction: urn.kistst
Content-Length: 767


senddoc(): entered
<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>
recvresp(): entered
HTTP/1.1 500 OK
Date: Mon, 06 Aug 2012 09:34:06 GMT
Server: Lotus Expeditor Web Container/6.1
Content-Length: 393
Connection: close
Content-Type: text/xml; charset=UTF-8
Content-Language: de-CH


SetError() #13: HTTP/1.1 500 OK
recvresp(): end with 500
recvdoc parms: identity 393
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>javax.xml.stream.XMLStreamException: Der Elementtyp "" entspricht nicht dem erwarteten Endbefehl "&lt;/xsd:kistst&gt;".</faultstring><detail></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
SetError() #13: HTTP/1.1 500 OK
http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------