File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes 1z0-897 exam quiz Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "1z0-897 exam quiz" Watch "1z0-897 exam quiz" New topic
Author

1z0-897 exam quiz

giuseppe frasca
Greenhorn

Joined: May 31, 2012
Posts: 4
Hi,
I have found this question online:

QUESTION NO: 103
A developer is writing a Web service method that needs to accept multiple types of requests.
Based on the request's content, the service performs time-consuming steps, such as verifying the
user's account, checking credit ratings, and building a list of offers. Which two approaches are
appropriate to use in this situation? (Choose two.)
A. A synchronous, document-style approach.
B. A synchronous, procedure-style approach.
C. An asynchronous, document-style approach.
D. An asynchronous, procedure-style approach.
E. HTTP and HTTPS.
F. SMTP or other asynchronous protocol.

Answer: C,F

My doubt is:
Why D is incorrect? The difference should be only from a schema veiwpoint. I mean that both rpc or document style web service could be used for asynchronous ws. For 'F' another example could be JMS?

Thank you in advance
Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 593
The key word here is "accept multiple types of requests".
When you build a web service in RPC style, your web method (@Webmethod) can only accept primitive type arguments.
For document style, your web method can accept any object type arguments.

I am not sure if I am right since I am new to web service.
giuseppe frasca
Greenhorn

Joined: May 31, 2012
Posts: 4
Himai Minh wrote:The key word here is "accept multiple types of requests".
When you build a web service in RPC style, your web method (@Webmethod) can only accept primitive type arguments.
For document style, your web method can accept any object type arguments.

I am not sure if I am right since I am new to web service.


Thank you very much for your reply.
I am not sure that it is the point. If you have an RPC style in the wsdl you can use type attribute on a part element pointing to a type defined in a schema. Even if you would be right there are many primitive types and then the key word "accept multiple types of requests" wouldn't be meanignful.

Thank you again Himai
Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 593
In Martin Kalin's Java Web Service Up and Running, p 56, there is a quote

Here are some downsides to the rpc style:

This style with its obvious link to the request/response pattern, encourages high coupling between the service and the client.....
This same point is sometimes made by noting that the rpc style has an inherently synchronous as opposed to asynchronous invocation idiom....


giuseppe frasca
Greenhorn

Joined: May 31, 2012
Posts: 4
Himai Minh wrote:In Martin Kalin's Java Web Service Up and Running, p 56, there is a quote

Here are some downsides to the rpc style:

This style with its obvious link to the request/response pattern, encourages high coupling between the service and the client.....
This same point is sometimes made by noting that the rpc style has an inherently synchronous as opposed to asynchronous invocation idiom....




Your post is very useful.
Thank you very much
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 1z0-897 exam quiz
 
Similar Threads
Synchronous Messaging & EJB
Different RPC Engines
calling asynchronous web service synchronously
document style webservice
Question on Asynchronous web service call using document style.