Le forum (ô combien francophone) des utilisateurs de Powerbuilder.
Pages: 1
Bonjour,
Pouvez vous me dire comment paramétrer un proxy sous pb 10.5 ?
En effet, j'essaie de créer un appel à un web service avec web service proxy wizard et il me dit que le fichier wsdl est invalide, alors que via l'explorateur il est correct.
Je pense qu'il faut que je configure mon proxy quelque part mais j'ai pas bien saisi comment faire.
Pouvez vous m'aider ?
Merci Bcp
Stef
Hors ligne
stef a écrit:
Bonjour,
Pouvez vous me dire comment paramétrer un proxy sous pb 10.5 ?
En effet, j'essaie de créer un appel à un web service avec web service proxy wizard et il me dit que le fichier wsdl est invalide, alors que via l'explorateur il est correct.
Je pense qu'il faut que je configure mon proxy quelque part mais j'ai pas bien saisi comment faire.
Pouvez vous m'aider ?
Merci Bcp
Stef
Bonjour,
Ta démarche de départ est la bonne. C'est normalment le fichier WSDL qui te donne le descriptif du webservice et sur lequel PB s'appuie pour générer son proxy. Par contre, j'ai déjà rencontré des problèmes avec des WSDL décrivant des webservices manipulant des types de données particuliers (tableaux par exemple) en entrée et/ou en sortie. Peux tu mettres ton WSDL sur le forum ?
Hors ligne
Bonjour Stef
Une autre piste
1
A tu essayé lors de de la création project webservise de terminer la localisation par ?WSDL comme ci dessous.
http://dl9000vm0108m/WebServices/Appcom/Facture.asmx?WSDL
Ceci m 'avait posé des Problème en ne le mettant pas.
2
les 2 dll PB webservice.Runtime sont du 9/11/2006
3
Utilise bien tu pbsoapclient105.pbd
Je viens de faire un essai chez moi (en congé) ---> OK
Comme dit Chrnico on à eu des problèmes avec des tableaux.
Notre solution (hors web service) a été de crée une procédure(oracle) qui nous renvoie l' URL de celui ci.
Cordialement
Hors ligne
Bonjour à tous les deux, et merci de votre réponse j'avais bien mis ?WDSL et je suis en https je vous donne l'url : https://www.qualip.org/2007_06_11_1/oc_soap.php?wsdl
elle fonctionne dans le navigateur ( notre proxy est autorisé à s'y connecter )
1/
je viens d'essayer http://dl9000vm0108m/WebServices/Appcom/Facture.asmx?WSDL il me dit aussi fichier invalide
2/
les dll datent du 13/03/2007
3/ J'utilise bien pbsoapclient105.pbd ( enfin, je les ai rajouté à ma target )
Merci
Hors ligne
pour info, déjà j'ai vu que pour ajouter les pbx il faut faire click droit sur la librairie import pb extension mais ça marche toujours pas.
Hors ligne
Encore des précisions : si je ne coche pas .net et je reste en easy soap, il reconnai bien le fichier wsdl mais ne trouve pas de service à l'intérieur
Hors ligne
Si tu es en PB10.5 as-tu paramétré PB ?
tools --> system options --> firewall setting
Hors ligne
Oui, je l'ai paramétré, j'arrive avoir un objet proxy maintenant mais uniquement en EasySoap et http.
Or, je dois utiliser une connexion ssl normalement.
Quand j'essaie de passer l'addresse https en .net il dit que le fichier wsdl est invalide alors qu'il n'envoie aucune requête au proxy d'après notre admin.
Par contre en EasySoap https, il envoie bien une requête au proxy mais ne reconnait pas le service.
Merci beaucoup pour votre aide
Hors ligne
J'ai tenté de récupérer en local le fichier mais il ne le reconnait pas en .net par contre easy soap ok.
Merci à tous, et bon courage
voici le wsdl au cas où ...
<?xml version="1.0" encoding="UTF-8"?> <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.qualip.org" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.qualip.org"> <types><xsd:schema targetNamespace="http://www.qualip.org" > <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" /> <xsd:complexType name="ArrayOfString"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="ArrayOfInt"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:int[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="PGStruct"> <xsd:element name="PG_ID" type="xsd:int"/> <xsd:element name="PG_FJUR" type="xsd:string"/> <xsd:element name="PG_RS" type="xsd:string"/> <xsd:element name="PG_ADR1" type="xsd:string"/> <xsd:element name="PG_ADR2" type="xsd:string"/> <xsd:element name="PG_ADR3" type="xsd:string"/> <xsd:element name="PG_CP" type="xsd:string"/> <xsd:element name="PG_VILLE" type="xsd:string"/> <xsd:element name="PG_TEL" type="xsd:string"/> <xsd:element name="PG_GSM" type="xsd:string"/> <xsd:element name="PG_FAX" type="xsd:string"/> <xsd:element name="PG_EMAIL" type="xsd:string"/> <xsd:element name="PG_GERCIV" type="xsd:string"/> <xsd:element name="PG_GERNOM" type="xsd:string"/> <xsd:element name="PG_SIRET" type="xsd:string"/> <xsd:element name="PG_OP" type="xsd:string"/> <xsd:element name="PG_OPCODE" type="xsd:string"/> <xsd:element name="PG_DEPOP" type="xsd:string"/> </xsd:complexType> <xsd:complexType name="ArrayOfPGStruct"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:PGStruct[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="ODMStruct"> <xsd:element name="CC_ID" type="xsd:string"/> <xsd:element name="CC_ODMCTL" type="xsd:int"/> <xsd:element name="PG_STATUT" type="xsd:string"/> </xsd:complexType> <xsd:complexType name="ArrayOfODMStruct"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:ODMStruct[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </xsd:schema> </types> <message name="PGSYNCRequest"><part name="OC_CLE" type="xsd:string" /><part name="PGSYNC_TR" type="xsd:int" /><part name="PGSYNC_RESET" type="xsd:int" /></message> <message name="PGSYNCResponse"><part name="RET" type="xsd:int" /><part name="RETSTR" type="xsd:string" /><part name="ORD" type="xsd:string" /><part name="PGSYNC_TR" type="xsd:int" /><part name="PG_STRUCT" type="tns:ArrayOfPGStruct" /></message> <message name="PGSTATUTRequest"><part name="OC_CLE" type="xsd:string" /><part name="PG_ID" type="xsd:int" /></message> <message name="PGSTATUTResponse"><part name="RET" type="xsd:int" /><part name="RETSTR" type="xsd:string" /><part name="ORD" type="xsd:string" /><part name="PG_STATUT" type="xsd:string" /></message> <message name="ODMSYNCRequest"><part name="OC_CLE" type="xsd:string" /><part name="ODMSYNC_TR" type="xsd:int" /><part name="ODMSYNC_RESET" type="xsd:int" /></message> <message name="ODMSYNCResponse"><part name="RET" type="xsd:int" /><part name="RETSTR" type="xsd:string" /><part name="ORD" type="xsd:string" /><part name="ODMSYNC_TR" type="xsd:int" /><part name="ODM_STRUCT" type="tns:ArrayOfODMStruct" /></message> <message name="ENREGISTREMENT_CCRequest"><part name="OC_CLE" type="xsd:string" /><part name="CC_ID" type="xsd:string" /><part name="PG_ID" type="xsd:int" /><part name="CC_NATGAZ" type="xsd:int" /><part name="CC_DISTR" type="xsd:string" /><part name="CC_RG" type="xsd:string" /><part name="CC_ADR1" type="xsd:string" /><part name="CC_ADR2" type="xsd:string" /><part name="CC_ADR3" type="xsd:string" /><part name="CC_ADR4" type="xsd:string" /><part name="CC_CP" type="xsd:string" /><part name="CC_VILLE" type="xsd:string" /><part name="CC_COLL" type="xsd:int" /><part name="CC_CHANT" type="xsd:string" /><part name="CC_TYPE" type="xsd:string" /><part name="CC_TYPEBAT" type="xsd:int" /><part name="CC_TYPEINST" type="xsd:int" /></message> <message name="ENREGISTREMENT_CCResponse"><part name="RET" type="xsd:int" /><part name="RETSTR" type="xsd:string" /><part name="ORD" type="xsd:string" /><part name="OC_NOM" type="xsd:string" /><part name="PG_STATUT" type="xsd:string" /><part name="CC_ODM" type="xsd:int" /><part name="CC_ODMCTL" type="xsd:int" /></message> <message name="RESULTAT_AUDITRequest"><part name="OC_CLE" type="xsd:string" /><part name="CC_ID" type="xsd:string" /><part name="AUD_VISITE" type="xsd:string" /><part name="AUD_STATUT" type="xsd:int" /><part name="AUD_MOTRET" type="xsd:string" /><part name="AUD_MOTREM" type="xsd:string" /><part name="AUD_DEPRG" type="xsd:int" /><part name="AUD_CTL" type="xsd:string" /><part name="AUD_UVISA" type="xsd:int" /><part name="AUD_PVISA" type="xsd:int" /><part name="CC_TYPE" type="xsd:string" /><part name="CC_TYPEBAT" type="xsd:int" /><part name="CC_TYPEINST" type="xsd:int" /><part name="AUD_QTAB" type="tns:ArrayOfString" /><part name="AUD_DATE" type="xsd:string" /></message> <message name="RESULTAT_AUDITResponse"><part name="RET" type="xsd:int" /><part name="RETSTR" type="xsd:string" /><part name="ORD" type="xsd:string" /></message> <portType name="QualiPPortType"><operation name="PGSYNC"><documentation>Merci de consulter les spécifications techniques.</documentation><input message="tns:PGSYNCRequest"/><output message="tns:PGSYNCResponse"/></operation><operation name="PGSTATUT"><documentation>Merci de consulter les spécifications techniques.</documentation><input message="tns:PGSTATUTRequest"/><output message="tns:PGSTATUTResponse"/></operation><operation name="ODMSYNC"><documentation>Merci de consulter les spécifications techniques.</documentation><input message="tns:ODMSYNCRequest"/><output message="tns:ODMSYNCResponse"/></operation><operation name="ENREGISTREMENT_CC"><documentation>Merci de consulter les spécifications techniques.</documentation><input message="tns:ENREGISTREMENT_CCRequest"/><output message="tns:ENREGISTREMENT_CCResponse"/></operation><operation name="RESULTAT_AUDIT"><documentation>Merci de consulter les spécifications techniques.</documentation><input message="tns:RESULTAT_AUDITRequest"/><output message="tns:RESULTAT_AUDITResponse"/></operation></portType> <binding name="QualiPBinding" type="tns:QualiPPortType"><soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/><operation name="PGSYNC"><soap:operation soapAction="http://www.qualip.org/2007_06_11_1/oc_soap.php/PGSYNC" style="rpc"/><input><soap:body use="encoded" namespace="http://www.qualip.org" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.qualip.org" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="PGSTATUT"><soap:operation soapAction="http://www.qualip.org/2007_06_11_1/oc_soap.php/PGSTATUT" style="rpc"/><input><soap:body use="encoded" namespace="http://www.qualip.org" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.qualip.org" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="ODMSYNC"><soap:operation soapAction="http://www.qualip.org/2007_06_11_1/oc_soap.php/ODMSYNC" style="rpc"/><input><soap:body use="encoded" namespace="http://www.qualip.org" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.qualip.org" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="ENREGISTREMENT_CC"><soap:operation soapAction="http://www.qualip.org/2007_06_11_1/oc_soap.php/ENREGISTREMENT_CC" style="rpc"/><input><soap:body use="encoded" namespace="http://www.qualip.org" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.qualip.org" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="RESULTAT_AUDIT"><soap:operation soapAction="http://www.qualip.org/2007_06_11_1/oc_soap.php/RESULTAT_AUDIT" style="rpc"/><input><soap:body use="encoded" namespace="http://www.qualip.org" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="http://www.qualip.org" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation></binding> <service name="QualiP"><port name="QualiPPort" binding="tns:QualiPBinding"><soap:address location="https://www.qualip.org:443/2007_06_11_1/oc_soap.php"/></port></service> </definitions>
Je vous tiendrai au courant.
Hors ligne
ReSalut à tous, je vous tiens informés :
J'ai enfin réussi à avoir accès au web service mais uniquement avec easysoap en http pour le wsdl
Par contre je peux lui passer un endpoint en https, mais le wsdl n'est pas parsé correctement en easysoap et carrément invalide en .net ( même en le copiant en local )
Voilà je vous remercie pour tout et peut être que ça pourra aider quelqu'un.
@+
Hors ligne
stef a écrit:
ReSalut à tous, je vous tiens informés :
J'ai enfin réussi à avoir accès au web service mais uniquement avec easysoap en http pour le wsdl
Par contre je peux lui passer un endpoint en https, mais le wsdl n'est pas parsé correctement en easysoap et carrément invalide en .net ( même en le copiant en local )
Voilà je vous remercie pour tout et peut être que ça pourra aider quelqu'un.
@+
Personne n'a réussi à déployer un WS en .net à partir d'un wsdl ?
Hors ligne
Si moi j'y suis arrivé!
La solution m'a été suggérée par l'aide PB qui dit:
"WSDL Location
Specify which WSDL file you want to use. The file can be either local or remote. If it is local, give its full path. If it is remote, give its URL."
En fait il doit y avoir un bug car en SSL avec HTTPS, quand on fournit une URL, ça ne marche pas. Mais quand on fournit un pathname ça fonctionne parfaitement.
La méthode est donc de générer en local le WSDL et de le fournir en temps que pathname. Si tu n'as pas de fichier WSDL, tu peux le générer via l'explorateur en appelant l'URL avec ?wsdl à la fin puis faire un Save as... dans un fichier.wsdl.
Par contre en accès HTTP non sécurisé les 2 méthodes marchent.
Hors ligne
matock a écrit:
Si moi j'y suis arrivé!
La solution m'a été suggérée par l'aide PB qui dit:
"WSDL Location
Specify which WSDL file you want to use. The file can be either local or remote. If it is local, give its full path. If it is remote, give its URL."
En fait il doit y avoir un bug car en SSL avec HTTPS, quand on fournit une URL, ça ne marche pas. Mais quand on fournit un pathname ça fonctionne parfaitement.
La méthode est donc de générer en local le WSDL et de le fournir en temps que pathname. Si tu n'as pas de fichier WSDL, tu peux le générer via l'explorateur en appelant l'URL avec ?wsdl à la fin puis faire un Save as... dans un fichier.wsdl.
Par contre en accès HTTP non sécurisé les 2 méthodes marchent.
Oui je sais j'ai remarqué exactement les mêmes choses que toi et remonté le problème au support Sybase.
Merci tout de même
Hors ligne
Pages: 1