Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

newbie JAX question after generation  RSS feed

 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i need to utilize a service running locally at "http://localhost:81/office" now i have generated the files from wsimport and added them to my project
However i dont know how to call the service function the details of the service are
String UrlString ="http://localhost:81/school";
String nameSpaceUri = "urn:OfficeService/wsdl";
String serviceName = "OfficeService";
String portName = "OfficelPort";
FunctionName: "Show" Input is integer and output is two strings

According to WSDL
<wsdl:portType name="SchoolPort">
<wsdlperation name="Show">
<wsdl:input message="tns:ShowRequestMessage" />
<wsdlutput message="tns:ShowResponseMessage" />
</wsdlperation>
</wsdl:portType>

Now i tried the following
But it doesnt work .... any idea ??
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say it doesn't work, what actually happens? If you want assistance, you need to give exact details about the problem like any exceptions which occur.
 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James Boswell wrote:When you say it doesn't work, what actually happens? If you want assistance, you need to give exact details about the problem like any exceptions which occur.

Well the Function at the server side is not called since whenever that service is invoked it prints a message on the screen. I think the service does not connect to the Service Privider
 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem solved. I was sppose to use the port.function
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!