I can make the client work if using python suds and pysimplesoap. But when I use JAVA-WS client, I always got the error:
javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://aa.bb.cc.dd/XXXX/default/call/soap?WSDL. It failed with: Got java.security.cert.CertificateException: No subject alternative names present while opening stream from https://aa.bb.cc.dd/XXXX/default/call/soap?WSDL. Here aa.bb.cc.dd is a public ip address. The web2py application is host on amazon EC2. Thanks! On Monday, November 24, 2014 3:24:25 PM UTC-5, Pengfei Yu wrote: > > Hi Dave, > > Thanks very much for your reply! Could you give a more detailed example > for an implementation for Java client? A block of java codes from your Java > client talking to web2py service will be perfect. Even with the most simple > example from the web2py's SOAP service document is good enough. > > Thanks! > > On Friday, November 21, 2014 6:16:45 PM UTC-5, Dave S wrote: >> >> >> >> On Thursday, November 20, 2014 6:49:18 AM UTC-8, Pengfei Yu wrote: >>> >>> Hi, >>> >>> I am using the SOAP service provided by web2py to create a simple web >>> service for my web application. The document provide a example of using >>> "pysimplesoap" to consume the created SOAP web service. The code is like >>> below: >>> >>> >>> from gluon.contrib.pysimplesoap.client import SoapClient >>> >>> client = >>> >>> SoapClient(wsdl="http://localhost:8000/app/default/call/soap?WSDL") >>> >>> print client.MyAdd(a=1,b=2) >>> {'result': 3} >>> >>> My question is for this simple web service, can we use other languages >>> like JAVA to consume it in the client side. Does the simple web service >>> allow JAVA clients like JAX-WS or JAVA Axis to access it? >>> My cooperator want me to create a web service for my application and >>> they are using JAVA. >>> >>> >> I have a Java client talking to my Web2Py service. >> >> My imports include "javax.xml.soap.xml", and i instantiate using >> SOAPConnectionFactory. >> >> I also have a Python client that talks to the same service using suds >> rather than pysimplesoap, so I would expect any typical client library to >> work. Mariano seems to have a very good library for us to leverage. >> >> /dps >> >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

