Skip to Content
author's profile photo Former Member
Former Member

consuming a web service

Dear All

i am trying to consume a web service using power builder 12.5 , i am getting the following error

can not access the wsdl or the wsdl file is invalid

this is the wsdl file , so plz what is the problem

<?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.8 svn-revision#13980. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.8 svn-revision#13980. --><definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://pahw.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://pahw.com/" name="SCBServiceImplService">

<types>

<xsd:schema>

<xsd:import namespace="http://pahw.com/" schemaLocation="http://10.26.0.13:8080/ScbWS/service?xsd=1"></xsd:import>

</xsd:schema>

</types>

<message name="getRequests">

<part name="parameters" element="tns:getRequests"></part>

</message>

<message name="getRequestsResponse">

<part name="parameters" element="tns:getRequestsResponse"></part>

</message>

<message name="getLookups">

<part name="parameters" element="tns:getLookups"></part>

</message>

<message name="getLookupsResponse">

<part name="parameters" element="tns:getLookupsResponse"></part>

</message>

<message name="getRemarks">

<part name="parameters" element="tns:getRemarks"></part>

</message>

<message name="getRemarksResponse">

<part name="parameters" element="tns:getRemarksResponse"></part>

</message>

<message name="getIndividualRelations">

<part name="parameters" element="tns:getIndividualRelations"></part>

</message>

<message name="getIndividualRelationsResponse">

<part name="parameters" element="tns:getIndividualRelationsResponse"></part>

</message>

<portType name="SCBService">

<operation name="getRequests">

<input wsam:Action="http://pahw.com/SCBService/getRequestsRequest" message="tns:getRequests"></input>

<output wsam:Action="http://pahw.com/SCBService/getRequestsResponse" message="tns:getRequestsResponse"></output>

</operation>

<operation name="getLookups">

<input wsam:Action="http://pahw.com/SCBService/getLookupsRequest" message="tns:getLookups"></input>

<output wsam:Action="http://pahw.com/SCBService/getLookupsResponse" message="tns:getLookupsResponse"></output>

</operation>

<operation name="getRemarks">

<input wsam:Action="http://pahw.com/SCBService/getRemarksRequest" message="tns:getRemarks"></input>

<output wsam:Action="http://pahw.com/SCBService/getRemarksResponse" message="tns:getRemarksResponse"></output>

</operation>

<operation name="getIndividualRelations">

<input wsam:Action="http://pahw.com/SCBService/getIndividualRelationsRequest" message="tns:getIndividualRelations"></input>

<output wsam:Action="http://pahw.com/SCBService/getIndividualRelationsResponse" message="tns:getIndividualRelationsResponse"></output>

</operation>

</portType>

<binding name="SCBServiceImplPortBinding" type="tns:SCBService">

<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"></soap:binding>

<operation name="getRequests">

<soap:operation soapAction=""></soap:operation>

<input>

<soap:body use="literal"></soap:body>

</input>

<output>

<soap:body use="literal"></soap:body>

</output>

</operation>

<operation name="getLookups">

<soap:operation soapAction=""></soap:operation>

<input>

<soap:body use="literal"></soap:body>

</input>

<output>

<soap:body use="literal"></soap:body>

</output>

</operation>

<operation name="getRemarks">

<soap:operation soapAction=""></soap:operation>

<input>

<soap:body use="literal"></soap:body>

</input>

<output>

<soap:body use="literal"></soap:body>

</output>

</operation>

<operation name="getIndividualRelations">

<soap:operation soapAction=""></soap:operation>

<input>

<soap:body use="literal"></soap:body>

</input>

<output>

<soap:body use="literal"></soap:body>

</output>

</operation>

</binding>

<service name="SCBServiceImplService">

<port name="SCBServiceImplPort" binding="tns:SCBServiceImplPortBinding">

<soap:address location="http://10.26.0.13:8080/ScbWS/service"></soap:address>

</port>

</service>

</definitions>

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 13, 2014 at 04:10 PM

    Anytime you get that error you can try running the .Net WSDL.EXE utility directly against the file (or URL). That will report out specific details about the problem with the wsdl.

    When I did that against the file you provide, I got this:

    Microsoft (R) Web Services Description Language Utility
    [Microsoft (R) .NET Framework, Version 2.0.50727.3038]
    Copyright (C) Microsoft Corporation. All rights reserved.
    Error: Unable to import binding 'SCBServiceImplPortBinding' from namespace 'http
    ://pahw.com/'.
      - Unable to import operation 'getRequests'.
      - The element 'http://pahw.com/:getRequests' is missing.
    
    
    If you would like more help, please type "wsdl /?".
    

    One issue, at least for me running it, is that it contains an import that references a URL I don't have access to:

    <xsd:import namespace="http://pahw.com/" schemaLocation="http://10.26.0.13:8080/ScbWS/service?xsd=1"></xsd:import>
    

    If you don't have access to that URL either, that would be the issue.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2014 at 05:10 AM

    there is one more thing

    how i could know if this is a wcf service or normal web service ?

    can i consume wcf service using classic powerbuilder 12.5 ?

    Add a comment
    10|10000 characters needed characters exceeded

    • >>how i could know if this is a wcf service or normal web service


      If you were able to generate a proxy for it, you *might* find that there were boolean flags for every argument to indicate whether a value is being passed or not. That's typical for a WCF web service.

      >>can i consume wcf service using classic powerbuilder 12.5


      It depends on the WCF service. There are a number of features that WCF supports that the ASP.Net webservices that PowerBuilder Classic uses can't handle. If the WCF services uses any of them, then you wouldn't be able to use the ASP.NET based proxy. What you could do though is create a WCF service proxy in PB.Net, generate an assembly in PB.Net that uses it, and then use that assembly from PowerBuilder Classic either through conditional code blocks (in .Net targets) or through a COM Callable Wrapper ( in a Win32 target).



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.