web services - How to create SOAP client with spring application -


i need create client wsdl. have java web application jsf, spring , jpa. in application need create form , send info soap web service. service should return object status.

please, idea grateful

regards

sorry english

i assume have generated classes wsdl needed client. in spring simple using apache cxf. e.g.:

<jaxws:client id="yourservice"               serviceclass="com.something.yourservice"               address="the url of web service"               username="username"               password="password"/> 

and in class need call web service autowire it:

@autowired @qualifier("yourservice") private yourservice service; 

take @ example: http://cxf.apache.org/docs/writing-a-service-with-spring.html


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -