cancel
Showing results for 
Search instead for 
Did you mean: 

TimeOut when calling wcf from powerbuilder 12.5

Former Member
0 Kudos

Hello,

we created a webservice and installed on iis.

when we call the ws from winform it reply correctly,

when we  call the ws from PB we got timeout.

what could be the problem ?

where sholud i look for the problem ?

thank you,

Eyal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Eyal;

  Are you calling the WCF based WS from PB.Net or PB Classic?

regards ... Chris

Former Member
0 Kudos

Hi,

i'm calling it from PB classic...

10's,

Eyal

Former Member
0 Kudos

Hi Eyal;

     FWIW: WCF are "restful" web services which PB Classic does not support that protocol (unfortunately). Try testing the WCF WS with something like "WCF Test Client". I suspect that it will work OK.

     AFAIK the only workaround for the moment is to create a WCF client .Net Assembly in PB.Net or VS and then consume this in PB Classic as a COM object.

Regards ... Chris

Former Member
0 Kudos

Hi,

it's possible to convert a rest to soap ?

there is a utillity that can do this ?

thnaks again,

Eyal

Former Member
0 Kudos

    No ... but, you can just publish the Web Service from PB Classic and then use SOAP or .Net proxies to consume it in PB classic as well. Its no muss - no fuss if you use PB Classic all the way through. 

Former Member
0 Kudos

Hi Chris,

this is the wsdl , how can i see that it's rest and not soap ?

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" name="ImutBneyMishpachaQueryWrap" targetNamespace="http://tempuri.org/">

<wsp:Policy wsu:Id="WSHttpBinding_IImutBneyMishpachaQueryWrap_policy">

<wsp:ExactlyOne>

<wsp:All>

<sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

<wsp:Policy>

<sp:ProtectionToken>

<wsp:Policy>

<sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">

<wsp:Policy>

<sp:RequireDerivedKeys/>

<sp:BootstrapPolicy>

<wsp:Policy>

<sp:SignedParts>

<sp:Body/>

<sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>

</sp:SignedParts>

<sp:EncryptedParts>

<sp:Body/>

</sp:EncryptedParts>

<sp:SymmetricBinding>

<wsp:Policy>

<sp:ProtectionToken>

<wsp:Policy>

<sp:SpnegoContextToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">

<wsp:Policy>

<sp:RequireDerivedKeys/>

</wsp:Policy>

</sp:SpnegoContextToken>

</wsp:Policy>

</sp:ProtectionToken>

<sp:AlgorithmSuite>

<wsp:Policy>

<sp:Basic256/>

</wsp:Policy>

</sp:AlgorithmSuite>

<sp:Layout>

<wsp:Policy>

<sp:Strict/>

</wsp:Policy>

</sp:Layout>

<sp:IncludeTimestamp/>

<sp:EncryptSignature/>

<sp:OnlySignEntireHeadersAndBody/>

</wsp:Policy>

</sp:SymmetricBinding>

<sp:Wss11>

<wsp:Policy/>

</sp:Wss11>

<sp:Trust10>

<wsp:Policy>

<sp:MustSupportIssuedTokens/>

<sp:RequireClientEntropy/>

<sp:RequireServerEntropy/>

</wsp:Policy>

</sp:Trust10>

</wsp:Policy>

</sp:BootstrapPolicy>

</wsp:Policy>

</sp:SecureConversationToken>

</wsp:Policy>

</sp:ProtectionToken>

<sp:AlgorithmSuite>

<wsp:Policy>

<sp:Basic256/>

</wsp:Policy>

</sp:AlgorithmSuite>

<sp:Layout>

<wsp:Policy>

<sp:Strict/>

</wsp:Policy>

</sp:Layout>

<sp:IncludeTimestamp/>

<sp:EncryptSignature/>

<sp:OnlySignEntireHeadersAndBody/>

</wsp:Policy>

</sp:SymmetricBinding>

<sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

<wsp:Policy/>

</sp:Wss11>

<sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

<wsp:Policy>

<sp:MustSupportIssuedTokens/>

<sp:RequireClientEntropy/>

<sp:RequireServerEntropy/>

</wsp:Policy>

</sp:Trust10>

<wsaw:UsingAddressing/>

</wsp:All>

</wsp:ExactlyOne>

</wsp:Policy>

<wsp:Policy wsu:Id="WSHttpBinding_IImutBneyMishpachaQueryWrap_TestConnection_Input_policy">

<wsp:ExactlyOne>

<wsp:All>

<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

<sp:Body/>

<sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>

</sp:SignedParts>

<sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

<sp:Body/>

</sp:EncryptedParts>

</wsp:All>

</wsp:ExactlyOne>

</wsp:Policy>

<wsp:Policy wsu:Id="WSHttpBinding_IImutBneyMishpachaQueryWrap_TestConnection_output_policy">

<wsp:ExactlyOne>

<wsp:All>

<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

<sp:Body/>

<sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>

</sp:SignedParts>

<sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

<sp:Body/>

</sp:EncryptedParts>

</wsp:All>

</wsp:ExactlyOne>

</wsp:Policy>

<wsp:Policy wsu:Id="WSHttpBinding_IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_Input_policy">

<wsp:ExactlyOne>

<wsp:All>

<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

<sp:Body/>

<sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>

</sp:SignedParts>

<sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

<sp:Body/>

</sp:EncryptedParts>

</wsp:All>

</wsp:ExactlyOne>

</wsp:Policy>

<wsp:Policy wsu:Id="WSHttpBinding_IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_output_policy">

<wsp:ExactlyOne>

<wsp:All>

<sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

<sp:Body/>

<sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>

<sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>

</sp:SignedParts>

<sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

<sp:Body/>

</sp:EncryptedParts>

</wsp:All>

</wsp:ExactlyOne>

</wsp:Policy>

<wsdl:types>

<xsd:schema targetNamespace="http://tempuri.org/Imports">

<xsd:import schemaLocation="http://my computer/ImutBneyMishpachaQueryWrap.svc?xsd=xsd0" namespace="http://tempuri.org/"/>

<xsd:import schemaLocation="http://my computer/ImutBneyMishpachaQueryWrap.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>

<xsd:import schemaLocation="http://my computer/ImutBneyMishpachaQueryWrap.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/LogonWSWrap"/>

</xsd:schema>

</wsdl:types>

<wsdl:message name="IImutBneyMishpachaQueryWrap_TestConnection_InputMessage">

<wsdl:part name="parameters" element="tns:TestConnection"/>

</wsdl:message>

<wsdl:message name="IImutBneyMishpachaQueryWrap_TestConnection_OutputMessage">

<wsdl:part name="parameters" element="tns:TestConnectionResponse"/>

</wsdl:message>

<wsdl:message name="IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_InputMessage">

<wsdl:part name="parameters" element="tns:GetImutBneyMishpachaQueryProxy"/>

</wsdl:message>

<wsdl:message name="IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_OutputMessage">

<wsdl:part name="parameters" element="tns:GetImutBneyMishpachaQueryProxyResponse"/>

</wsdl:message>

<wsdl:portType name="IImutBneyMishpachaQueryWrap">

<wsdl:operation name="TestConnection">

<wsdl:input wsaw:Action="http://tempuri.org/IImutBneyMishpachaQueryWrap/TestConnection" message="tns:IImutBneyMishpachaQueryWrap_TestConnection_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IImutBneyMishpachaQueryWrap/TestConnectionResponse" message="tns:IImutBneyMishpachaQueryWrap_TestConnection_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="GetImutBneyMishpachaQueryProxy">

<wsdl:input wsaw:Action="http://tempuri.org/IImutBneyMishpachaQueryWrap/GetImutBneyMishpachaQueryProxy" message="tns:IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IImutBneyMishpachaQueryWrap/GetImutBneyMishpachaQueryProxyResponse" message="tns:IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_OutputMessage"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="WSHttpBinding_IImutBneyMishpachaQueryWrap" type="tns:IImutBneyMishpachaQueryWrap">

<wsp:PolicyReference URI="#WSHttpBinding_IImutBneyMishpachaQueryWrap_policy"/>

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

<wsdl:operation name="TestConnection">

<soap12:operation soapAction="http://tempuri.org/IImutBneyMishpachaQueryWrap/TestConnection" style="document"/>

<wsdl:input>

<wsp:PolicyReference URI="#WSHttpBinding_IImutBneyMishpachaQueryWrap_TestConnection_Input_policy"/>

<soap12:body use="literal"/>

</wsdl:input>

<wsdl:output>

<wsp:PolicyReference URI="#WSHttpBinding_IImutBneyMishpachaQueryWrap_TestConnection_output_policy"/>

<soap12:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="GetImutBneyMishpachaQueryProxy">

<soap12:operation soapAction="http://tempuri.org/IImutBneyMishpachaQueryWrap/GetImutBneyMishpachaQueryProxy" style="document"/>

<wsdl:input>

<wsp:PolicyReference URI="#WSHttpBinding_IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_Input_policy"/>

<soap12:body use="literal"/>

</wsdl:input>

<wsdl:output>

<wsp:PolicyReference URI="#WSHttpBinding_IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_output_policy"/>

<soap12:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="ImutBneyMishpachaQueryWrap">

<wsdl:port name="WSHttpBinding_IImutBneyMishpachaQueryWrap" binding="tns:WSHttpBinding_IImutBneyMishpachaQueryWrap">

<soap12:address location="http://my computer/ImutBneyMishpachaQueryWrap.svc"/>

<wsa10:EndpointReference>

<wsa10:Address>

http://my computer/ImutBneyMishpachaQueryWrap.svc

</wsa10:Address>

<Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">

<Dns>localhost</Dns>

</Identity>

</wsa10:EndpointReference>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Former Member
0 Kudos

You stated that you published it as a WCF web service - thus, WCF uses the REST protocol. I assumed that you used PB.Net or VS for building that part. 

Former Member
0 Kudos

Hi Chris,

I will try to keep the story short...

I have a service that I need to consume.

When I tried to call it from powerbuilder. Net

I could not add behaviour because of the way powerbuilder. Net works.

So we wrote a wraper in vs and put the new service on the iis.

When we call this service from vs test client it working fine.

I tooked the new wsdl and build a in powerbuilder classic Web services project.

The deploy create a proxy and some nvo.

Then I create soap connection and call the create instsnce method.

Last thing I  call a simple method on the proxy cslled testconnection, This is were I get stacked with Timeout!

I think that if there was a problem in the wsdl adress he would not have create the proxy or the nvo!

What more I can check in my configuration?

Thank you,

Eyal

Former Member
0 Kudos

Hello,

We used vs,

Thank you,

Eyal

Former Member
0 Kudos

Unfortunately, no versions of PB Classic (as of yet) support WCF.

AFAIK, your only recourse would be to take your working VS WCF client and create a .NET Assembly from that code-line. Then consume that .Net assembly in PB Classic using a COM interface.

Former Member
0 Kudos

Hi Eyal;

  I was just rethinking my earlier response and actually, YES - you can change a WCF Web Service to respond to SOAP as well as REST. This article should help ...

How to: Expose a Contract to SOAP and Web Clients

Regards ... Chris

Former Member
0 Kudos

Hello Chris,

Did you looked the wsdl I attached?

It seems like soap, don't you think?

Thank you,

Eyal

Former Member
0 Kudos

I don't believe so as you would have to have BasicHttpBinding declared - which I do not see.

former_member190719
Active Contributor
0 Kudos

     FWIW: WCF are "restful" web services

That is absolutely incorrect.  WCF is capable of producing REST web services but it's major focus is on SOAP web services and support for the WS-* standards that ASP.Net Web Services didn't support.

Former Member
0 Kudos

Hello Bruce,

I'm a little bit confused,

Can I call this Web service from powerbuilder classic or it doesn't supports this kind of Web service?

Thank you,

Eyal

former_member190719
Active Contributor
0 Kudos

>>It seems like soap, don't you think?


The very fact that you have WSDL indicates it's SOAP.  REST doesn't normally use WSDL.  There is WADL, but most REST web services just give a text description for the developer to read.





former_member190719
Active Contributor
0 Kudos

A few issues.

1.  When I try to generate a proxy using the WSDL you provided I get an error.  I ran the .Net WSDL utility on it directly and got this:

C:\Users\bruce\Downloads\webservice>"C:\Program Files\Microsoft SDKs\Windows\v7.

1\Bin\x64\wsdl.exe" webservice.wsdl

Microsoft (R) Web Services Description Language Utility

[Microsoft (R) .NET Framework, Version 2.0.50727.3038]

Copyright (C) Microsoft Corporation. All rights reserved.

Warning: This web reference does not conform to WS-I Basic Profile v1.1.

SOAP 1.1 binding was not found: WS-I's Basic Profile 1.1 consists of implementat

ion guidelines that recommend how a set of core Web services specifications shou

ld be used together to develop interoperable Web services. For the 1.1 Profile,

those specifications are SOAP 1.1, WSDL 1.1, UDDI 2.0, XML 1.0 and XML Schema.

For more details on the WS-I Basic Profile v1.1, see the specification

at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'WSHttpBinding_IImutBneyMishpachaQueryWrap' from

namespace 'http://tempuri.org/'.

  - Unable to import operation 'TestConnection'.

  - The element 'http://tempuri.org/:TestConnection' is missing.

If you would like more help, please type "wsdl /?".

So it looks like there's an issue with the WSDL or the service.

2.  PowerBuilder Classic doesn't have support for service that implement the WS-* standards, such as WS-I Basic.  If you have control over the web service, you'll want to turn those off if possible if you want to call it from classic.

3.  More directly related to your timeout issue, unless you provide a URL for the endpoint in the CreateInstance call PowerBuilder will use what is in the WSDL file.  What is there is "http://my computer/ImutBneyMishpachaQueryWrap.svc".  Is that the correct URL to hit the service from your machine?

Former Member
0 Kudos

Hello Bruce,

Thank you for your detailed answer.

you can't access this w.s because it's internal one.

we built it so we can use it to access external one that use behaviors, that can not be implemented via PB .NET.

i have control over this w.s. so ii will make the adjustment you mentioned above.

Thank's again,

Eyal

former_member190719
Active Contributor
0 Kudos

>>you can't access this w.s because it's internal one.

No, but I should be able to at least generate a proxy from the WSDL.

>>i have control over this w.s. so ii will make the adjustment you mentioned above.

If you're doing it using WCF, make sure you indicate you want to use the older XMLSerializer, not the DataContractSerializer that WCF uses by default.  Because PB Classic uses the old ASP.net Web Services, it only understands the XMLSerializer.

https://msdn.microsoft.com/en-us/library/ms733901(v=vs.110).aspx

Former Member
0 Kudos

Hello bruce,

here is the full wsdl file.

<?xml version="1.0" encoding="utf-8"?>

<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:tns="http://tempuri.org/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" name="ImutBneyMishpachaQueryWrap" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

  <wsp:Policy wsu:Id="WSHttpBinding_IImutBneyMishpachaQueryWrap_policy">

    <wsp:ExactlyOne>

      <wsp:All>

        <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

          <wsp:Policy>

            <sp:ProtectionToken>

              <wsp:Policy>

                <sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">

                  <wsp:Policy>

                    <sp:RequireDerivedKeys />

                    <sp:BootstrapPolicy>

                      <wsp:Policy>

                        <sp:SignedParts>

                          <sp:Body />

                          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" />

                          <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" />

                          <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" />

                          <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" />

                          <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" />

                          <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" />

                          <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" />

                        </sp:SignedParts>

                        <sp:EncryptedParts>

                          <sp:Body />

                        </sp:EncryptedParts>

                        <sp:SymmetricBinding>

                          <wsp:Policy>

                            <sp:ProtectionToken>

                              <wsp:Policy>

                                <sp:SpnegoContextToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">

                                  <wsp:Policy>

                                    <sp:RequireDerivedKeys />

                                  </wsp:Policy>

                                </sp:SpnegoContextToken>

                              </wsp:Policy>

                            </sp:ProtectionToken>

                            <sp:AlgorithmSuite>

                              <wsp:Policy>

                                <sp:Basic256 />

                              </wsp:Policy>

                            </sp:AlgorithmSuite>

                            <sp:Layout>

                              <wsp:Policy>

                                <sp:Strict />

                              </wsp:Policy>

                            </sp:Layout>

                            <sp:IncludeTimestamp />

                            <sp:EncryptSignature />

                            <sp:OnlySignEntireHeadersAndBody />

                          </wsp:Policy>

                        </sp:SymmetricBinding>

                        <sp:Wss11>

                          <wsp:Policy>

                            <sp:MustSupportRefKeyIdentifier />

                            <sp:MustSupportRefIssuerSerial />

                            <sp:MustSupportRefThumbprint />

                            <sp:MustSupportRefEncryptedKey />

                          </wsp:Policy>

                        </sp:Wss11>

                        <sp:Trust10>

                          <wsp:Policy>

                            <sp:MustSupportIssuedTokens />

                            <sp:RequireClientEntropy />

                            <sp:RequireServerEntropy />

                          </wsp:Policy>

                        </sp:Trust10>

                      </wsp:Policy>

                    </sp:BootstrapPolicy>

                  </wsp:Policy>

                </sp:SecureConversationToken>

              </wsp:Policy>

            </sp:ProtectionToken>

            <sp:AlgorithmSuite>

              <wsp:Policy>

                <sp:Basic256 />

              </wsp:Policy>

            </sp:AlgorithmSuite>

            <sp:Layout>

              <wsp:Policy>

                <sp:Strict />

              </wsp:Policy>

            </sp:Layout>

            <sp:IncludeTimestamp />

            <sp:EncryptSignature />

            <sp:OnlySignEntireHeadersAndBody />

          </wsp:Policy>

        </sp:SymmetricBinding>

        <sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

          <wsp:Policy>

            <sp:MustSupportRefKeyIdentifier />

            <sp:MustSupportRefIssuerSerial />

            <sp:MustSupportRefThumbprint />

            <sp:MustSupportRefEncryptedKey />

          </wsp:Policy>

        </sp:Wss11>

        <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

          <wsp:Policy>

            <sp:MustSupportIssuedTokens />

            <sp:RequireClientEntropy />

            <sp:RequireServerEntropy />

          </wsp:Policy>

        </sp:Trust10>

        <wsaw:UsingAddressing />

      </wsp:All>

    </wsp:ExactlyOne>

  </wsp:Policy>

  <wsp:Policy wsu:Id="WSHttpBinding_IImutBneyMishpachaQueryWrap_TestConnection_Input_policy">

    <wsp:ExactlyOne>

      <wsp:All>

        <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

          <sp:Body />

          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" />

        </sp:SignedParts>

        <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

          <sp:Body />

        </sp:EncryptedParts>

      </wsp:All>

    </wsp:ExactlyOne>

  </wsp:Policy>

  <wsp:Policy wsu:Id="WSHttpBinding_IImutBneyMishpachaQueryWrap_TestConnection_output_policy">

    <wsp:ExactlyOne>

      <wsp:All>

        <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

          <sp:Body />

          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" />

        </sp:SignedParts>

        <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

          <sp:Body />

        </sp:EncryptedParts>

      </wsp:All>

    </wsp:ExactlyOne>

  </wsp:Policy>

  <wsp:Policy wsu:Id="WSHttpBinding_IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_Input_policy">

    <wsp:ExactlyOne>

      <wsp:All>

        <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

          <sp:Body />

          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" />

        </sp:SignedParts>

        <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

          <sp:Body />

        </sp:EncryptedParts>

      </wsp:All>

    </wsp:ExactlyOne>

  </wsp:Policy>

  <wsp:Policy wsu:Id="WSHttpBinding_IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_output_policy">

    <wsp:ExactlyOne>

      <wsp:All>

        <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

          <sp:Body />

          <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" />

          <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" />

        </sp:SignedParts>

        <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

          <sp:Body />

        </sp:EncryptedParts>

      </wsp:All>

    </wsp:ExactlyOne>

  </wsp:Policy>

  <wsdl:types>

    <xsd:schema targetNamespace="http://tempuri.org/Imports">

      <xsd:import schemaLocation="http://localhost:49616/ImutBneyMishpachaQueryWrap.svc?xsd=xsd0" namespace="http://tempuri.org/" />

      <xsd:import schemaLocation="http://localhost:49616/ImutBneyMishpachaQueryWrap.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />

      <xsd:import schemaLocation="http://localhost:49616/ImutBneyMishpachaQueryWrap.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/LogonWSWrap" />

    </xsd:schema>

  </wsdl:types>

  <wsdl:message name="IImutBneyMishpachaQueryWrap_TestConnection_InputMessage">

    <wsdl:part name="parameters" element="tns:TestConnection" />

  </wsdl:message>

  <wsdl:message name="IImutBneyMishpachaQueryWrap_TestConnection_OutputMessage">

    <wsdl:part name="parameters" element="tns:TestConnectionResponse" />

  </wsdl:message>

  <wsdl:message name="IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_InputMessage">

    <wsdl:part name="parameters" element="tns:GetImutBneyMishpachaQueryProxy" />

  </wsdl:message>

  <wsdl:message name="IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_OutputMessage">

    <wsdl:part name="parameters" element="tns:GetImutBneyMishpachaQueryProxyResponse" />

  </wsdl:message>

  <wsdl:portType name="IImutBneyMishpachaQueryWrap">

    <wsdl:operation name="TestConnection">

      <wsdl:input wsaw:Action="http://tempuri.org/IImutBneyMishpachaQueryWrap/TestConnection" message="tns:IImutBneyMishpachaQueryWrap_TestConnection_InputMessage" />

      <wsdl:output wsaw:Action="http://tempuri.org/IImutBneyMishpachaQueryWrap/TestConnectionResponse" message="tns:IImutBneyMishpachaQueryWrap_TestConnection_OutputMessage" />

    </wsdl:operation>

    <wsdl:operation name="GetImutBneyMishpachaQueryProxy">

      <wsdl:input wsaw:Action="http://tempuri.org/IImutBneyMishpachaQueryWrap/GetImutBneyMishpachaQueryProxy" message="tns:IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_InputMessage" />

      <wsdl:output wsaw:Action="http://tempuri.org/IImutBneyMishpachaQueryWrap/GetImutBneyMishpachaQueryProxyResponse" message="tns:IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_OutputMessage" />

    </wsdl:operation>

  </wsdl:portType>

  <wsdl:binding name="WSHttpBinding_IImutBneyMishpachaQueryWrap" type="tns:IImutBneyMishpachaQueryWrap">

    <wsp:PolicyReference URI="#WSHttpBinding_IImutBneyMishpachaQueryWrap_policy" />

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

    <wsdl:operation name="TestConnection">

      <soap12:operation soapAction="http://tempuri.org/IImutBneyMishpachaQueryWrap/TestConnection" style="document" />

      <wsdl:input>

        <wsp:PolicyReference URI="#WSHttpBinding_IImutBneyMishpachaQueryWrap_TestConnection_Input_policy" />

        <soap12:body use="literal" />

      </wsdl:input>

      <wsdl:output>

        <wsp:PolicyReference URI="#WSHttpBinding_IImutBneyMishpachaQueryWrap_TestConnection_output_policy" />

        <soap12:body use="literal" />

      </wsdl:output>

    </wsdl:operation>

    <wsdl:operation name="GetImutBneyMishpachaQueryProxy">

      <soap12:operation soapAction="http://tempuri.org/IImutBneyMishpachaQueryWrap/GetImutBneyMishpachaQueryProxy" style="document" />

      <wsdl:input>

        <wsp:PolicyReference URI="#WSHttpBinding_IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_Input_policy" />

        <soap12:body use="literal" />

      </wsdl:input>

      <wsdl:output>

        <wsp:PolicyReference URI="#WSHttpBinding_IImutBneyMishpachaQueryWrap_GetImutBneyMishpachaQueryProxy_output_policy" />

        <soap12:body use="literal" />

      </wsdl:output>

    </wsdl:operation>

  </wsdl:binding>

  <wsdl:service name="ImutBneyMishpachaQueryWrap">

    <wsdl:port name="WSHttpBinding_IImutBneyMishpachaQueryWrap" binding="tns:WSHttpBinding_IImutBneyMishpachaQueryWrap">

      <soap12:address location="http://localhost:49616/ImutBneyMishpachaQueryWrap.svc" />

      <wsa10:EndpointReference>

        <wsa10:Address>http://localhost:49616/ImutBneyMishpachaQueryWrap.svc</wsa10:Address>

        <Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">

          <Dns>localhost</Dns>

        </Identity>

      </wsa10:EndpointReference>

    </wsdl:port>

  </wsdl:service>

</wsdl:definitions>

former_member190719
Active Contributor
0 Kudos

The problem is that you've got some XSD imports in the WSDL.  I'd need those before I could generate a proxy:

  <wsdl:types>

    <xsd:schema targetNamespace="http://tempuri.org/Imports">

      <xsd:import schemaLocation="http://localhost:49616/ImutBneyMishpachaQueryWrap.svc?xsd=xsd0" namespace="http://tempuri.org/" />

      <xsd:import schemaLocation="http://localhost:49616/ImutBneyMishpachaQueryWrap.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />

      <xsd:import schemaLocation="http://localhost:49616/ImutBneyMishpachaQueryWrap.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/LogonWSWrap" />

    </xsd:schema>

  </wsdl:types>

The main reason I want to do that is to see if IsNull properties are being generated for the data elements.  If they are, it's a clear indication that you're still using the DataContractSerializer and that PB Classic will have an issue with the service.

Former Member
0 Kudos

Hi,

i add the xsd files that were included in the wsdl .

Former Member
0 Kudos

Hello Bruce,

Did you manage to create the wsdl according to the files I add below?

Thank you,

Eyal

former_member190719
Active Contributor
0 Kudos

No, your XSD files have includes that point to still other XSD files that I don't have.

I wouldn't bother providing those, it's not that important that I can create a proxy.