Results 1 to 2 of 2
  1. #1
    zhaohua is offline Member
    Join Date
    Dec 2016
    Posts
    1
    Rep Power
    0

    Question How to definde Web service client input parameter if web service like this

    Dear ALL:

    I am try to create a web service client in my Java application.
    the Web Service was created by VB.net to execute SQL command
    and the SOAP 1.1 request as following blue text

    POST /WebService/WebService.asmx HTTP/1.1
    Host: XXX.XXX.XXX.XXX
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://tempuri.org/SQLExec"

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <SQLExecxmlns="http://tempuri.org/">
    <sSQL>
    <string>string</string>
    <string>string</string>
    </sSQL>
    </SQLExec>
    </soap:Body>
    </soap:Envelope>


    I try to use XMLType.SOAP_ARRAY as following in my java code
    call.registerTypeMapping(String[].class, XMLType.SOAP_ARRAY, new ArraySerializerFactory(), new ArrayDeserializerFactory());
    call.addParameter(new QName(wsSoapAction, "sSQL"),XMLType.SOAP_ARRAY,String.class,ParameterM ode.IN);


    but I got error from web service server ---> No SQL Provided.

    is there any idea how to input parameter to mapping this kind of web service?
    thank you in advance.
    Last edited by zhaohua; 12-16-2016 at 03:00 AM.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    27

    Default Re: How to definde Web service client input parameter if web service like this

    Have you looked at what the SOAP request sent out looks like?

    Have you written this client by hand (which is what it looks like to me)?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Web Service Client and GUI
    By nightmare in forum New To Java
    Replies: 4
    Last Post: 02-18-2014, 05:53 PM
  2. web service client
    By uthpalaw in forum Java Servlet
    Replies: 0
    Last Post: 03-30-2010, 07:57 AM
  3. Web service client and array as input parameter
    By mpouly in forum Other IDEs
    Replies: 4
    Last Post: 11-29-2009, 05:33 PM
  4. Web service client
    By Tshegofatsom in forum New To Java
    Replies: 1
    Last Post: 09-09-2009, 02:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •