Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: Problems With Spring WS 1.5 Samples

  1. #21
    Join Date
    May 2005
    Posts
    208

    Default Airline Sample Spring-WS Client Builds and Runs Fine

    RTFM. The solution to my Maven problem was spelled out in the error message I got from Ant. I navigated my way to a local Spring 1.2.8 download, found /lib/j2ee/activation.jar, and typed this command:

    mvn install:install-file -DgroupId=javax.activation -DartifactId=activation -Dversion=1.0.2 -Dpackaging=jar -Dfile=activation.jar

    This appeared to add the missing JAR to my local repository. When I rebuilt the code, all was well.

    %

  2. #22
    Join Date
    May 2005
    Posts
    208

    Default Airline Sample Axis Client Has Build Issues

    I can't build the Axis client for the airline sample.

    The GetFlightsRequest class has a setDepartureDate that takes an XMLGregorianCalendar type, but the argument passed into the code is a java.util.Date. I don't know how this conversion is supposed to happen, but the code won't build as written. Any advice? What did I miss?

    %

  3. #23
    Join Date
    May 2005
    Posts
    208

    Default Airline Sample JMS Client Builds and Runs Fine

    Airline sample JMS client builds fine.

    It didn't run right off the bat, because I had to uncomment the jmsClient bean definition in the jms/applicationContext.xml.

    Then I had to download Apache's ActiveMQ. Easy enough, but when I first started the listener there was a conflict with the standard RMI port 1099. I edited the conf/activemq.xml to change the port to 10990, restarted the server, and all was well. The JMS client ran fine after that.

    Just .NET and Axis to sort out.

    %

  4. #24
    Join Date
    May 2005
    Posts
    208

    Default Airline Sample AXIS 1.4 Client Builds and Runs Fine

    I had to add the Axis 1.4 JAR to my IntelliJ project, because it wasn't fetched from Maven. Once I did that, the Axis client compiled and ran fine.

    Only the .NET client remains. I've installed the Visual Studio Team Edition with .NET 3.5. We'll see how that goes.

    %

  5. #25
    Join Date
    May 2005
    Posts
    208

    Default .NET Ignoramus - Help With Airline Sample .NET Client

    I'm trying to get the last client for the Airline sample running - the .NET C# client.

    I'm totally ignorant of Microsoft technologies. I'm a pure Java boy.

    So when I run the Ant build, I get an IOException: "Cannot run program 'wsdl': CreateProcess error=2, The system cannot find the file specified".

    Google tells me that error=2 means "You don't have the appropriate .exe in your PATH". So I installed Visual Studio 2008 Team Suite Edition. It put all kinds of stuff on my machine, including SQL Server. When I look at my PATH, I see SQL Server Tools /bin, but nothing for .NET.

    I'm poking around under Program Files, but I don't really know what I'm looking for. What do I have to add to my PATH to make the Ant build work?

  6. #26
    Join Date
    May 2005
    Posts
    208

    Default Ant .NET Tasks Have A Problem

    I figured out that I need the csc.ext for compiling C# and wsdl.exe to generate .NET client from WSDL. I added both to my PATH (wsdl.exe was easy to find; csc.exe wasn't in plain sight, so I had to cut & paste the PATH out of vsvars32.bat into my environment variable). The generate task works fine, but the build does not. I get a fatal error from task <csc>:

    fatal error CS2007: Unrecognized option: '/incremental-'

    I tried setting the attribute "incremental=false" that's built into the task, but it didn't help.

    How to fix? No joy from Google yet.

    %

  7. #27
    Join Date
    May 2005
    Posts
    208

    Default Visual Studio and C#

    Now I figure that I'm better off using Visual Studio to create the .exe for me and forget about fixing the Ant <csc> task. I created a new project and tried to build the generated code, but there were beaucoup compilation errors. I guess I'll have to come up to speed with C# and VS very quickly.

    %

  8. #28
    Join Date
    May 2005
    Posts
    208

    Default No Joy With Airline .NET Client

    The .NET client will not be happening for me. It's time to move on.

    I created a simple project for the generated AirlineClient.cs, but when I build I get 12 error messages:

    Code:
    The type or namespace name 'Services' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
    I can see System.Web.Services in my object browser, and there's a "using" statement in the code. I'm not familiar enough with C# to debug this. Google hasn't turned up any quick fixes. I'm onto greener pastures.

    I'd love to see the mtom and stockquote samples run. I'm going to move on and give those a try.

    %

  9. #29
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    See http://forum.springsource.org/showthread.php?t=52253 to fix the missing reference problem. Will be addressed in 1.5.1.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •