web-services

how do i call a webservice using phonegap for android

感情迁移 提交于 2019-12-30 02:24:10
问题 How do I make a webservice call from my phonegap app? I found two javascript libraries one from IBM and another IvanWebService http://wiki.phonegap.com/w/page/43725416/SOAP%20Web%20Service that allow you to make such calls but i couldnt get them to run any of my webservices. I am passing in a wsdl link as the service link and i have updated the envelope parameters, still nothing. 回答1: If it were me, I would use jQuery. http://www.bennadel.com/blog/1853-Posting-XML-SOAP-Requests-With-jQuery

Parsing SOAP response

雨燕双飞 提交于 2019-12-30 02:19:05
问题 Calling a web service from my controller: $client = new \SoapClient("http://.../webservice/NAME_OF_PAGE.asmx?WSDL"); $result = $client->EstadoHabitacionesFechas(); I get this: <xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="NewDataSet"> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="TablaEstadoHabitacion" msdata:UseCurrentLocale="true"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs=

How to use the webservice-client classes generated with Eclipse?

元气小坏坏 提交于 2019-12-30 02:01:28
问题 I used eclipse Helios to create a Web Service Client for consuming an axis 1.4 web service. It generated 2 packages: 1 - datamodel. 2 - client. Inside client package there are 5 classes: 1- ServiceName 2- ServiceNameProxy 3- ServiceNameService 4- ServiceNameServiceLocator 5- ServiceNameSoapBindingStub I need to Know what are these ? AND How to call the web service methods with parameters? Thanks in advance 回答1: I am very new to Web Services and I can't give a good explanation of what those

wsimport “Cannot resolve the name…”

陌路散爱 提交于 2019-12-30 01:53:12
问题 I've been trying to import the following web service: http://soap.genome.jp/KEGG.wsdl with ${JAVA_HOME}/bin/wsimport: wsimport -version JAX-WS RI 2.1.6 in JDK 6 but I got the following error: parsing WSDL... [WARNING] src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) 'type definition' component. line 19 of http://soap.genome.jp/KEGG.wsdl#types?schema1 [ERROR] undefined simple or complex type 'soapenc:Array' line 19 of http://soap.genome.jp/KEGG.wsdl (....) Does the problem comes

Error accessing a Web Service with SSL

谁说胖子不能爱 提交于 2019-12-30 01:05:58
问题 I have a program that is supposed to send a file to a web service, which requires an SSL connection. I run the program as follows: SET JAVA_HOME=C:\Program Files\Java\jre1.6.0_07 SET com.ibm.SSL.ConfigURL=ssl.client.props "%JAVA_HOME%\bin\java" -cp ".;Test.jar" ca.mypackage.Main This was works fine, but when I change the first line to SET JAVA_HOME=C:\Program Files\IBM\SDP\runtimes\base_v7\java\jre I get the following error: com.sun.xml.internal.ws.client.ClientTransportException: HTTP

Error accessing a Web Service with SSL

孤街浪徒 提交于 2019-12-30 01:05:09
问题 I have a program that is supposed to send a file to a web service, which requires an SSL connection. I run the program as follows: SET JAVA_HOME=C:\Program Files\Java\jre1.6.0_07 SET com.ibm.SSL.ConfigURL=ssl.client.props "%JAVA_HOME%\bin\java" -cp ".;Test.jar" ca.mypackage.Main This was works fine, but when I change the first line to SET JAVA_HOME=C:\Program Files\IBM\SDP\runtimes\base_v7\java\jre I get the following error: com.sun.xml.internal.ws.client.ClientTransportException: HTTP

Document or RPC based web services

六眼飞鱼酱① 提交于 2019-12-30 01:01:06
问题 My gut feel is that document based web services are preferred in practice - is this other peoples experience? Are they easier to support? (I noted that SharePoint uses Any for the "document type" in its WSDL interface, I guess that makes it Document based). Also - are people offering both WSDL and Rest type services now for the same functionality? WSDL is popular for code generation, but for front ends like PHP and Rails they seem to prefer rest. 回答1: Document versus RPC is only a question if

Something compareable to 'localtunnel' for Windows [closed]

*爱你&永不变心* 提交于 2019-12-30 00:51:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I found this here http://github.com/progrium/localtunnel , and it's exactly what I need, but I am working on Windows and localtunnel is Unix... Some backgorund: I am currently developing a Facebook app and the Single-Sign-On won't work on my local Tomcat. 回答1: PageKite (disclaimer: I made this!) solves the same

curl command - Unable to load client cert -8018

六月ゝ 毕业季﹏ 提交于 2019-12-29 20:54:41
问题 I'm trying to connect to a secure webservice throught a proxy using the curl command, but I get the follow error: Unable to load client cert -8018. Complete log: [e-ballo@myserver]# curl -v -x proxy01.net:8080 https://endPointURL.com/SOAP --key ./cert.crt --cert ./cert.crt -capath=/etc/pki/tls/certs * About to connect() to proxy proxy01.net port 8080 (#0) * Trying 10.0.3.64... connected * Connected to proxy01.net (10.0.3.64) port 8080 (#0) * Establish HTTP proxy tunnel to endPointURL.com:443

curl command - Unable to load client cert -8018

不问归期 提交于 2019-12-29 20:53:18
问题 I'm trying to connect to a secure webservice throught a proxy using the curl command, but I get the follow error: Unable to load client cert -8018. Complete log: [e-ballo@myserver]# curl -v -x proxy01.net:8080 https://endPointURL.com/SOAP --key ./cert.crt --cert ./cert.crt -capath=/etc/pki/tls/certs * About to connect() to proxy proxy01.net port 8080 (#0) * Trying 10.0.3.64... connected * Connected to proxy01.net (10.0.3.64) port 8080 (#0) * Establish HTTP proxy tunnel to endPointURL.com:443