wsdl

Using SAML token with Web Service (wsdl)

浪子不回头ぞ 提交于 2019-12-20 07:28:52
问题 I have been given a .wsdl file and .pfx from the provider. I call the IdP and acquire a SAML token. Now I need to pass that token to the WebService. How do I use the SAML token to work with the WebService? I am using .NET 4.5 回答1: I was able to add the token and get response with the help of the following two posts: http://www.noiseworks.org/security-token-service-in-asp-net-application-part-2/ http://travisspencer.com/blog/2012/01/cryptographic-operations-are-r.html Here's my code: private

SOAP: Returning an array of xsd:any elements in PHP

末鹿安然 提交于 2019-12-20 07:14:53
问题 I need to return SOAP call answer according to WSDL. Everything is working OK, except returning xsd:any element. Part of the WSDL, that I'm having problem with (this is for excpected answer). xsd:complexType name="data" xsd:sequence xsd:any minOccurs="1" maxOccurs="unbounded" xsd:sequence xsd:complexType What I tried: foreach($data as $name=>$value) { $object->data->any[$name] = $value; } return $object; The SOAP call returns answer like this: ..response> -data>value1value2value3value4-/data>

Getting name space,method name from SOAP WSDL?

老子叫甜甜 提交于 2019-12-20 06:38:59
问题 i want find out the witch one is target-name space and witch one is method name in the given WSDL file. My WSDL files is as follows: <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:sap-com:document:sap:soap

How to use HashMap as a parameter in Web service

我的梦境 提交于 2019-12-20 05:39:49
问题 I am trying to make a dynamic Web Service in which i will be expecting a Java hash map or an Array list for the argument. I am using the following code in Class Code: package demo; import java.util.ArrayList; import javax.jws.WebService; @WebService public class HashMapTest { public HashMapTest() { super(); } public int getResponse(ArrayList<String> hm) { return hm.size(); } } I am using an IDE: Oracle Jdeveloper 11g. when i use the Wizard in the same, the output WSDL is as given below: <?xml

php SoapClient fails when passed a wsdl with relative path schemas

泪湿孤枕 提交于 2019-12-20 05:28:37
问题 I have the following issue: The instantiation of my SoapClient object fails when I pass it a wsdl that imports a schema using relative paths. (I believe this is the case anyway, based on my research) My code is as follows: $wsdl = 'http://myproxy/webservice?wsdl'; $options = array( /* options */ ); $client = new SoapClient($wsdl, $options); The schema import part of the wsdl: <schema xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://myprovider/namespace1/namespace1"

JAX-WS and XSD Validation

扶醉桌前 提交于 2019-12-20 04:50:21
问题 I have a wsdl that has a imported xsd, this xsd has quite a restrictions like this: <xsd:simpleType name="len_type"> <xsd:restriction base="xsd:string"> <xsd:pattern value='[:alnum:]{4} [\d]{2} [\d] [\d]{2}' /> </xsd:restriction> </xsd:simpleType> So I would thind that when I deploy this ear to glassfish via netbeans that there would be validation done on the data that is passed in, but this is not the case. Is there any calls I need to make to ensure that the data is validated before it is

Workaround for PHP SOAP request failure when wsdl defines service port binding as https and port 80?

前提是你 提交于 2019-12-20 04:26:58
问题 I am consuming a SOAP web service using php5's soap extension. The service' wsdl was generated using Axis java2wsdl, and whatever options are used during generation result in the port binding url being listed as https ://xxx.xxx.xxx.xxx**:80** If I download the wsdl to my server, remove the port 80 specification from the port binding location value, and reference the local file in my soapclient call it works fine. However, if I try to reference it remotely (or download it and reference it

How to change database settings for a deployed war file?

偶尔善良 提交于 2019-12-20 04:23:40
问题 We have a WAR file that is deployed however we want to change the database settings. How do I get about doing that? I opened the WAR file in an IDE and there are like 2-3 places that have the database settings. What is the proper way of changing it? Thank You 回答1: The tomcat instance should be set up to provide a datasource through JNDI. 回答2: The proper way is to use a datasource at the application level and to administer it at the application server level. Check the MySQL DBCP Example in the

delphi调用webservice服务

天涯浪子 提交于 2019-12-20 04:10:45
分类: delphi技术 我用delphi的THTTPRIO控件调用了c#写的webservice。 下面是我调试时遇到的一些问题: 1,导入wsdl文件:file--new----other----wenservice---WSDLimporter---输入wsdl地址:如下:http://10.0.1.128:7777/ShineMediaPublish/WebService/WebServiceCall.asmx?wsdl 注意末尾的:'?wsdl'不能少。要不可能会说找不到。 2,设置THTTPRIO控件的属性: 开始把 http://10.0.1.128:7777/ShineMediaPublish/WebService/WebServiceCall.asmx?wsdl 赋给了wsdlLocation属性。连接时总是报错。 后来赋给URL属性,就不报错了。 3,传递参数是web服务端总为空: 在导入的接口单元的声明部分添加如下代码: InvRegistry.RegisterInvokeOptions(TypeInfo( WebServiceCallSoap ),ioDocument);//其中红色部分为导入接口名称。 下面是客户端的简单代码: unit Unit1; interface uses Windows, Messages, SysUtils, Variants,

How to canonicalize WSDL files in Java?

北战南征 提交于 2019-12-20 03:33:14
问题 I need to find differences in two WSDL files. I started by pretty-printing them like here, but I see there are same things (e.g. complexType s) in the two files defined (for whatever stupid reason) in a different order. I want to canonicalize the files further, so I can later use things like standard diff to find the differences. No idea if there's a defined canonical form for WSDL, I know there's Canonical XML, but I need to go a bit further and sort all the things whose order doesn't matter