Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Message based Web Services, Axis and Spring

  Asked By: Kiral    Date: Jun 14    Category: Java    Views: 1187
  

I have establish a simple Web Service which is message-based and has following interface:


public interface ExchangeService {

public Element [] registerOrder(Element [] bodies);
}

and we expose it by means of AXIS as Web Service

<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
...
<service name="ExchangeService" provider="java:MSG">
<parameter name="className" value="com.telexis.nsbpm.backend.service.core.ExchangeServicePublisher"/>
<parameter name="allowedMethods" value="registerOrder"/>
</service>
..
</deployment>

I have read a simple Client in java for it which works and I can send a receive row XML data inside a SOAP message.
I have worked with some facilities that Springframework provided for JaxRPC Web Services especially for client side, Is it any similar facilities for this type of Web Services?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Sonya Flores     Answered On: Jun 14

I'm not sure to understand your question correct, but think you're
looking for a client  for your webservice.
The best choice is Axis "Wsdl2Java" tool which when ran on your
service wsdl can generate client stubs (source files) to access the
service.
Note that if you want an on-the-fly/runtime webservice client you can
use Axis client API to get the WSDL and do XML messaging (as u said)
but it requires low level code (like any other dynamism).
Don't forget that current Axis usage is also deprecated somehow; and
Java webservice development is changing day to day.

 
Answer #2    Answered By: Eric Foster     Answered On: Jun 14

I think you didn't get my purpose. actually I had used what you said before but it generates Interfaces and Pojo classes of services based  on a WSDL. that is not required by me because I have them now. I want to know whether Spring framework (and nothing else!!! ) has some Proxy bean like JaxRpcPortProxyFactoryBean that faciliates access to Message-based Web services  (and not RPC based web  Services) or not?

 
Didn't find what you were looking for? Find more on Message based Web Services, Axis and Spring Or get search suggestion and latest updates.




Tagged: