Home > Back-end >  You can't get a Java client parameter gosap server
You can't get a Java client parameter gosap server

Time:10-23

Use gsoap generates a server, but using Java calls, unable to receive Java parameters passed, parameter is wstring type

CodePudding user response:

My gsoap server to return information to the Java client, but my server receives the parameters are all empty,
Such as type string becomes "", type int becomes 0
Whether gsoap, still need to manually write receive parameters function, is not this the automatically generated

CodePudding user response:

Seems to make the model of the webservice is quite small, c + + itself is also released webservice service, always feel a little uncomfortable,
Java and release webservice faster than c + +, c # is better,

But I also put this problem solved,
Mainly is the Java client calls webservice service, Java client, of course, I didn't do it, is my colleague, he is axis2 to fix,

I from accept to soap parameter analysis, found the answer,

I release webservice which need a parameter, the name is the username, but to me he is parameter arg0, so I put my parameter arg0 instead, arg1...

So I solved the problem of,

But I feel or Java client's problem, because I have already released the WSDL, which can find release parameters username, but represents the parameters of arg0.
  • Related