java - Connecting to SSL WebService -


i want connect web service in ssl connection. connect , service , port when send requests, returns null.

i searched web not understand problem. may because ssl, need connect different http connection, true?

i used auto code generators, return null too, wireshark says ssl packages transmitted correctly cannot read soap these packages because ssl.

i test web service applications , tools , got correct answers them.

question:

  • is possible null value because ssl connection?
  • what mistakes make null returning?
  • how can see soap messeges send , get?

here java code:

public class ws_theserveice {     private static qname qname;     private static url url;     private static service service;     private static implementationserviceporttype sender;     static     {         qname = new qname("http://wservice.com/", "implementationservice");         try         {             url = new url("https://to-service?wsdl");         }         catch (malformedurlexception e)         {             e.printstacktrace();         }         service = service.create(url, qname);         sender = service.getport(implementationserviceporttype.class);     }      public static boolean paytoacceptor(int acceptorid, int kipa) throws exception     {         getuserinfo req = new getuserinfo();         req.zpid = acceptorid;         req.kipa = kipa;         getuserinforesponse user_info = new getuserinforesponse();//user_info not null here         user_info = sender.getuserinfo(req);//but web server makes null         if (user_info!=null) //// ---- here, return null         {             system.out.println("youwon");             return true;         }         else         {             system.out.println("youloose");             return false;          }     }      public static void main(string args[]) throws exception     {         paytoacceptor(12345, 1);     } } 

thanks.

did figure out how this? i've had similar problems in past..

did try this: ssl connection consuming web services ?


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -