Click here to Skip to main content
15,942,793 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
JavaScript
Hi, 

I got an WSDL file from siebel team. I need to call this service from Jquery $.soap call and parse the value.

The WSDL file content looks like

 <pre lang="HTML"> <?xml version="1.0" encoding="UTF-8" ?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsdLocal1="http://www.siebel.com/xml/GetAccountInfoReqData" targetNamespace="http://siebel.com/CustomUI" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsdLocal2="http://www.siebel.com/xml/GetAccountInfoReplyData" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://siebel.com/CustomUI">
      <types>
        <xsd:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xsdLocal1="http://www.siebel.com/xml/GetAccountInfoReqData" targetNamespace="http://www.siebel.com/xml/GetAccountInfoReqData" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
          <xsd:annotation>
            <xsd:documentation>Copyright (C) 2001-2004 Siebel Systems, Inc. All rights reserved. Siebel XSD Generation</xsd:documentation>
          </xsd:annotation>
          <xsd:element name="GetAccountInfoReqData" type="xsdLocal1:GetAccountInfoReqData"></xsd:element>
          <xsd:complexType name="GetAccountInfoReqDataTopElmt">
            <xsd:sequence>
              <xsd:element name="GetAccountInfoReqData" maxOccurs="1" minOccurs="1" type="xsdLocal1:GetAccountInfoReqData"></xsd:element>
            </xsd:sequence>
          </xsd:complexType>




And i tried with this way using Jquery soap api.. After submitting the soap service i'm getting the same wsdl file content whatever i submitted.

JavaScript
$.soap({
     url: 'http://localhost/soap/soapservices.wsdl?',
     method: '',
     success: function(soapResponse) {},
     error: function(SOAPResponse) {}
   });



Is this a correct way or please give some suggestions, idea to start my work.
Posted

1 solution

First, there is no such concept as "call WSDL file". Second, if you request for WSDL file, of course, in any reasonable service based on WSDL, you will get this WSDL file. What else would you expect?

This is not how the service itself is consumed. It's explained in many places:
http://fahadismy.name/soap-calls-using-jquery-ajax[^],
http://openlandscape.net/2009/09/25/call-soap-xm-web-services-with-jquery-ajax[^],
http://www.lm-tech.it/Blog/post/2013/05/08/How-to-consume-a-RESTful-service-using-jQuery.aspx[^],
http://www.cnblogs.com/clearforever/archive/2011/10/09/2203628.html[^],
https://spring.io/guides/gs/consuming-rest-jquery[^].

—SA
 
Share this answer
 
v2
Comments
spskumar_121 18-Dec-15 1:07am    
what else we do with this WSDL file. They told using soap service to get the values.

in this WSDL file contains SOAP address. Find below details
soap:address location="http://xx.xx.xx.xxx/eai_enu/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=xxxx&Password=xxxxx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900