Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Port problem  RSS feed

 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I'm really struggling with this web services stuff. I'm trying to build a client java application to link to my web service. I generate the class files and everything works fine. Trouble is, my _Impl class doesn't contain a method that looks anything like the example. In addition, nothing seems to cast to a Stub either.
The web service is written in ASP.NET and works using .NET. Is there a mistake in the tutorial? I've got J2EE 1.4 (beta).
Anyway, this is beginning to drive me mental as I've spent about 4 days on this and am still playing around with the same code. It's worsened by the fact that it took about 2 minutes to set up in c# and I really want to stick with Java.
Any help would be much appreciated,
steve
 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've finally found the problem.
Let me start by saying that I'm a bit of an arse.
Basically, .NET uses a slightly different naming convention and the port code is contained in a class that they end with Soap. As a result, the port/stub code is located in the "*Soap" object
FireflyDesignSubmissionSoap ws = new FireflyDesignSubmissionLocator().getFireflyDesignSubmissionSoap();
I was getting confused and after sifting through the XML, I found my error. It's pretty easy to do in Java as well... if you take a bit of time to read what you're doing.
Steve
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!