• Post Reply Bookmark Topic Watch Topic
  • New Topic

Web Service Program Design

 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends i want to ask about how to program web service applications.

START

1) Call web service:

> exted service class (constructor sending WSDL URL and Service names and one getPOrt method)
> initialise service class port and call particular operation(from interface) - A handler also working sidewise to get response data for database
> return objectResponse and use it

Have to write functions(one per operation), in each we need to initialize and return objresponse (every function is called when required)


2) fetch out data like :

if(objectResponse.getyeh().getwooh()!=null && String.valueof(objectResponse.getyeh().getwooh())!="null" )
{
variable = objectResponse.getyeh().getwooh();
variable2 = todatabase(variable)
objbean.setYeh(variable2)
}

Most tiring work: is it good to do like this?

3) run update or insert and return true to main call

END:
and for 50 fetching it required to write same,
What better way to structure this information?


Code goes very big like for one Web service there is one client Java file and it contains over 5000 lines of code.....

Using: Service Class, Apache CXF(used just generate setter and getter seperately and classes are embedded in main project)....

Whole word done by Metro 2

If anyone understand a bit, could someone suggest best in design the web service program design?? What should be used and how....
 
Anurag Verma
Ranch Hand
Posts: 168
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Come On dude, you dont need to do all these stuff...this is the era of stuffs like Spring & CXF. Have a look at the examples at http://cxf.apache.org/docs/sample-projects.html.
 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for Reply Anurag,

Actually i need necessary demo and i was new to this topic, and unable to do Search on this part

I just have to make Web Service Client of 6 Services. I coded it using standard WS Package, but it feel so clumsy, sleazy yack type

Now i have 2 months to do R & D and convert the code accordingly and after 2 months i have to continue with more work related to it.

Thank you for posting link , actually i am unable to fetch out client programs in it. Could you provide me best link of Spring Examples too . i am searching that.

Thank You
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!