Best practice for simply invoking a web service
Hello,
We have web services deployed and accessible as wsdl documents in the SOA service manager/UDDI product. What is the best practice for simply calling a web service method deployed without regard to whether it is deployed on Tomcat, WebSphere, Oracle, etc.
I'd just like to create a java client to make a web service call and JAXRPC has me confused because you seem to have to have custody of the web service implementation code to call a service. Can someone point me in the right direction?
Thanks,
Sean
Thanks. Here is my wsdl, how would you say this is encoded?
<?xml version="1.0" encoding="UTF-8"?>
<definitions
name="OracleProcess"
targetNamespace="http://xmlns.oracle.com/OracleProcess"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://xmlns.oracle.com/OracleProcess"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:client="http://xmlns.oracle.com/OracleProcess"
>
<types>
<schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/OracleProcess"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="OracleProcessProcessRequest">
<complexType>
<sequence>
<element name="input" type="string"/>
<element name="input2" type="string"/>
</sequence>
</complexType>
</element>
<element name="OracleProcessProcessResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="OracleProcessRequestMessage">
<part name="payload" element="tns:OracleProcessProcessRequest"/>
</message>
<message name="OracleProcessResponseMessage">
<part name="payload" element="tns:OracleProcessProcessResponse"/>
</message>
<portType name="OracleProcess">
<operation name="process">
<input message="tns:OracleProcessRequestMessage"/>
<output message="tns:OracleProcessResponseMessage"/>
</operation>
</portType>
<binding name="OracleProcessBinding" type="tns:OracleProcess">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="process">
<soap:operation style="document" soapAction="process"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="OracleProcess">
<port name="OracleProcessPort" binding="tns:OracleProcessBinding">
<soap:address location="http://st4s:9700/orabpel/default/OracleProcess/1.0"/>
</port>
</service>
<plnk:partnerLinkType name="OracleProcess">
<plnk:role name="OracleProcessProvider">
<plnk:portType name="tns:OracleProcess"/>
</plnk:role>
</plnk:partnerLinkType>
</definitions>
Similar Messages
-
Best practices for exposing BPEL as web service on the Internet
Hello can anyone tell me if there are any best practices to exposing a BPEL process to the Internet using SOA Suite 11g. We want to create a separate domain that will contain the few processes that will be need to be accessed by external services. We obviously have to do this in a secure manner, so any help in this area on how to do so would be greatly appreciated.
Thanks in advance.
JimHello can anyone tell me if there are any best practices to exposing a BPEL process to the Internet using SOA Suite 11g. We want to create a separate domain that will contain the few processes that will be need to be accessed by external services. We obviously have to do this in a secure manner, so any help in this area on how to do so would be greatly appreciated.
Thanks in advance.
Jim -
Best practice for auto update flex web applications
Hi all
is there a best practice for auto update flex web applications, much in the same way AIR applications have an auto update mechanism?
can you please point me to the right direction?
cheers
YarivHey drkstr
I'm talking about a more complex mechanism that can handle updates to modules being loaded into the application ect...
I can always query the server for the verion and prevent loading from cach when a module needs to be updated
but I was hoping for something easy like the AIR auto update feature -
Best Practice for E&C and Professional Services
Hello Experts,
Where do I find the Best Practice for implementing Oracle Projects, specific to Industries like E&C, Professional Services, Etc.
ThanksHi Anuj,
Thanks for the links, they have been helpful.
I understand now that OSR is only meant to contain only Proxy services. The synch facility is between OSR and OSB so that in case when you are not using OER, you can publish Proxy services to OSR from OSB. What I didn't understand was why there was a option to publish a Proxy service back to OSB and why it ended up as a Business service. From the link you provided, it mentioned that this case is for multi-domain OSBs, where one OSB wants to use the other OSB's service. It is clear now.
Some more questions:
1) In the design-time, in OER no Endpoints are generated for Proxy services. Then how do we publish our design-time services to OSR for testing purposes? What is the correct way of doing this?
Thanks,
Umar -
Best practice for workflow triggering from Web Dynpro UI
Hello, workflow community!
I'm working on a task which allow to trigger the workflow by clicking a button in Web Dynpro UI. As always, there are multiple ways to do that, for instance, to use SAP Workflow API (SAP_WAPI_START_WORKFLOW) or to raise an event upon the button click, which will be caught by workflow template.
In my opinion, the optimal solution is to call FM, which will call ABAP-class, raising an event, which, in turn, will be caught by workflow template. In this case, FM will service kind of wrapper, where we can implement some additional checks if needed.
But the question is what approach is the best practice — to raise an event or use SAP_WAPI_*?
Thanks.let combine, use SAP_WAPI_CREATE_EVENT
usually I would not recommend creating a workflow directly (SAP_WAPI_START_WORKFLOW) since when I look for workflows in a system I usually start from SWE2 (the event linkage) which uses events so the workflow you start by SAP_WAPI_START_WORKFLOW will not be seen there, also SWE2 gives you better control for starting the workflow, you can easily deactivate an event linkage. finding where you called the workflow by SAP_WAPI_START_WORKFLOW will be more difficult and deactivation will require a code change.
so use events, and start them by SAP_WAPI_CREATE_EVENT
Also pay attention that you have a check function module option in SWE2. -
Best practice for great slideshows to web
Hello All,
I am using A3. I have successfully exported slideshows, and assigned them into iWeb. I have had the site published online. When I view my site, the slideshows work great. However when my "testers" view it, they are having trouble. My feeling is that the slideshows are too large. But being less than 5 megs, I didn't expect anyone with fast connections to have issues.
What I am asking is that if anyone has a solid slideshow workflow for me to try.
Thanks in AdvanceThank you all...
It's a real mystery to me then... At least I'm glad it worked fine for you, and thanks for the kind words. -
Best Practices for JMS Service Documentation
Our software consists of a variety of JMS producers and consumers used to transform and transmit business to business messages on a large scale.
The service nodes do a variety of things, and we've had trouble over the years ensuring every queue-based service clearly identifies the parameters and payload it accepts, so that everyone from programmers to system administrators can easily see what services are available and how they are to be used.
Some have advocated always adding a web service in front of each message-based service to guarantee interface contracts are all well publicized. I think there are reasons to choose web services and reasons to choose message-based services, and am not convinced this is the right answer to address limitations in expressing the design contract for a message-based service. That said, I really like what we've been able to do with self-documenting web services based on annotations, and wonder if there's a conceptual equivalent in message-based software.
What are your best practices for ensuring your message-based services are as self-documenting as your modern web service?
Thanks in advance for your advice!
Edited by: lsamaha on Apr 16, 2012 11:46 AM*bump
-
Best Practice for Securing Web Services in the BPEL Workflow
What is the best practice for securing web services which are part of a larger service (a business process) and are defined through BPEL?
They are all deployed on the same oracle application server.
Defining agent for each?
Gateway for all?
BPEL security extension?
The top level service that is defined as business process is secure itself through OWSM and username and passwords, but what is the best practice for security establishment for each low level services?
Regards
FarbodIt doesnt matter whether the service is invoked as part of your larger process or not, if it is performing any business critical operation then it should be secured.
The idea of SOA / designing services is to have the services available so that it can be orchestrated as part of any other business process.
Today you may have secured your parent services and tomorrow you could come up with a new service which may use one of the existing lower level services.
If all the services are in one Application server you can make the configuration/development environment lot easier by securing them using the Gateway.
Typical probelm with any gateway architecture is that the service is available without any security enforcement when accessed directly.
You can enforce rules at your network layer to allow access to the App server only from Gateway.
When you have the liberty to use OWSM or any other WS-Security products, i would stay away from any extensions. Two things to consider
The next BPEL developer in your project may not be aware of Security extensions
Centralizing Security enforcement will make your development and security operations as loosely coupled and addresses scalability.
Thanks
Ram -
Best practice for loading config params for web services in BEA
Hello all.
I have deployed a web service using a java class as back end.
I want to read in config values (like init-params for servlets in web.xml). What
is the best practice for doing this in BEA framework? I am not sure how to use
the web.xml file in WAR file since I do not know how the name of the underlying
servlet.
Any useful pointers will be very much appreciated.
Thank you.It doesnt matter whether the service is invoked as part of your larger process or not, if it is performing any business critical operation then it should be secured.
The idea of SOA / designing services is to have the services available so that it can be orchestrated as part of any other business process.
Today you may have secured your parent services and tomorrow you could come up with a new service which may use one of the existing lower level services.
If all the services are in one Application server you can make the configuration/development environment lot easier by securing them using the Gateway.
Typical probelm with any gateway architecture is that the service is available without any security enforcement when accessed directly.
You can enforce rules at your network layer to allow access to the App server only from Gateway.
When you have the liberty to use OWSM or any other WS-Security products, i would stay away from any extensions. Two things to consider
The next BPEL developer in your project may not be aware of Security extensions
Centralizing Security enforcement will make your development and security operations as loosely coupled and addresses scalability.
Thanks
Ram -
Best practice for integrating oracle atg with external web service
Hi All
What is the best practice for integrating oracle atg with external web service? Is it using integration repository or calling the web service directly from the java class using a WS client?
With Thanks & Regards
AbhishekUsing Integration Repository might cause performance overhead based on the operation you are doing, I have never used Integration Repository for 3rd Party integration therefore I am not able to make any comment on this.
Calling directly as a Java Client is an easy approach and you can use ATG component framework to support that by making the endpoint, security credentials etc as configurable properties.
Cheers
R
Edited by: Rajeev_R on Apr 29, 2013 3:49 AM -
Best practice for consuming web services
Hi
we are consuming web service in orchestration by "Add Generated Item".By using this option it creates 1 orch,1xsd file and some bindings.
we have different projects for schemas,maps and orchestration under our solution in visual studio.
Now i need to know that what will be the best practice for consuming web service in orchestration i mean in which project should i use "add generated item" (in orchstration project or in schemas project) coz it generates both 1 orch and 1
schema.
thanksFrom a service orientation perspective you should abstract the service artifacts from the other artifacts. Otherwise it will be very difficult to update the service interface without affecting the other artifacts. For example you don't want to have to redeply
your entire application if only one field changes in the service you consume.
So I typically generate the items, remove the unnecessary stuff, and put them in a separate project.
Depending on the control you have over the services you want to consume, it would even be better to create another layer of abstraction. By that I mean create your own interface (schema) and map that one to the one the service exposes. This basically
is only necessary if you consume external services that are beyond your control. By abstracting the interface it exposes, you limit the impact of changes of that interface on the rest of your system. All changes are abstracted behind your own interface.
If you consume internal services, you can probably control the way the interface is defined. In a service oriented world all internal services expose a well known interface, based on the domain objects you have within your organisation.
Jean-Paul Smit | Didago IT Consultancy
Blog |
Twitter | LinkedIn
MCTS BizTalk 2006/2010 + Certified SOA Architect
Please indicate "Mark as Answer" if this post has answered the question. -
What is the best practice for developing web service?
Hi All,
I'm a newbee to web services...
I was wondering what would be the best approach in developing a web service,
using tools or programmatic approach?
If I use WebLogic Workshop, am I tied to a vendor?
Is it possible for me to develop web services using workshop and deploy in
another app server..?
I would appreciate if somebody could give me a pointer to start.
I have already referred BEA's docs.
I'm still confused on a good starting point on the best approach to develop
protable web services.
Thanks in advance for any inputs.
K KK K-
You have a very valid point on the simplify or complicate matters. If you are
going for clean and not-so-time-centric code, then there are several different
programs and packages out there you can choose from.
Since you are specialized in J2EE, than the Sun package may be what you are looking
for. BEA's classes simplify much of the work you will be doing, but you could
emulate their classes or extend yours above the functions provided in theirs.
It all boils down to how much work are you willing to do.
If you are asking for more detailed, coding 'Design Patterns' to utilize, I would
wait for a few more posts from other folks as my work often requires me to utilize
the tools provided.
Sincerely,
Eric Ballou
"K K" <[email protected]> wrote:
Eric,
Thanks for the response.
I was also looking at Sun's WSDP 1.1, which is more programmatic approach.
Some how, I feel being a J2EE developer, I should go on the direction
of the
programmatic approach.
Using the tools could simplify or complicate things. Also, the Workshop
samples import all weblogic specific packages.
My code looks so dirty with many vendor specific packages being imported.
Could you give me your suggestions for a clean and neat approach?
I would personally prefer to avoid the quick and dirty approach.
Thanks again.
"Eric Ballou" <[email protected]> wrote in message
news:[email protected]...
K K-
The best approach in developing portable web services is knowing whatyou
are
planning on using them for as well as how much is willing to be spent,etc.
BEA's Workshop is portable to other frameworks, but the ease ofintegrating a
developed client or a developed server can very greatly. Even moreof an
issue
is migration from one framework to another. If you choose to developin
Workshop
and your company later deploys .Net solutions, some of your work mayhave
to be
redone unless the company is willing to keep portions of the 'old'system
around
until new versions of the service are available. However, Workshophas
several
ant tools available that would assist you in deploying to other appservers or
even a stand-alone application should you need cross framework abilities.
If you are just starting out in web services, http://www.webservices.org
is a
good place to start checking out vendors in the space.
Sincerely,
Eric Ballou
"K K" <[email protected]> wrote:
Hi All,
I'm a newbee to web services...
I was wondering what would be the best approach in developing a web
service,
using tools or programmatic approach?
If I use WebLogic Workshop, am I tied to a vendor?
Is it possible for me to develop web services using workshop and deploy
in
another app server..?
I would appreciate if somebody could give me a pointer to start.
I have already referred BEA's docs.
I'm still confused on a good starting point on the best approach todevelop
protable web services.
Thanks in advance for any inputs.
K K -
Best Practice for External Libraries Shared Libraries and Web Dynrpo
Two blogs have been written on sharing libraries with Web Dynpro DC, but I would
like to know the best practice for doing this.
External libraries seem to work great at compile time, but when deploying there is often an error related to the external library not being a deployed component.
Is there a workaround for this besides creating a shared J2EE library which I have been able to get working? I am not interested in something that works, but really
what are the best practice for this. What is the best way to limit the number of jars that need to be kept in a shared library/ext library. When is sharing ref service/etc a valid approach vs. hunting down the jars in the portal libraries etc and storing in an external library.Security is mainly about mitigation rather than 100% secure, "We have unknown unknowns". The component needs to talk to SQL Server. You could continue to use http to talk to SQL Server, perhaps even get SOAP Transactions working but personally
I'd have more worries about using such a 'less trodden' path since that is exactly the areas where more security problems are discovered. I don't know about your specific design issues so there might be even more ways to mitigate the risk but in general you're
using a DMZ as a decent way to mitigate risk. I would recommend asking your security team what they'd deem acceptable.
http://pauliom.wordpress.com -
Best Practice for embedding webi reports in hyperlinks..
SAP Community
What is the best practice for embedding hyperlinks (email) from webi and sending to a user?so the users can quickly consume the report with minimal effort (click link and launch infoview/report).
JohnAs mentionned already, BI has it's own inbox, and/or SMTP integration for broadcasting.
Else, if you go to Folders, right click on your report instance, then select "Copy URL" (or 'docuemnt link' i cannot remember the exact term.) - that woudl give you an open document link to invoke the viewer .
Regards,
H -
Best Practices for Using Service Controller for Entity Framework Database
I'm running into an issue in my first time creating a Web Service with a .NET backend with Azure. I designed a database in Entity Framework and had it create the models, but I couldn't create a controller for the table unless I made the model inherit from
EntityData. Here's the catch, the Database Model has int Id, but EntityData has string Id, so, of course, I'm getting errors. What is best practice for what I'm trying to do?
Michael DiLeohi Michael,
Thanks for you posting!
Sorry for I am not totally understanding your issue. Maybe two points need your confirm:
1. I confuse with the "Service controller"? IS your meaning MVC controller? Or ServiceController(http://www.codeproject.com/Articles/31688/Using-the-ServiceController-in-C-to-stop-and-start
2.whether The type of ID in the model is match to the database ? In other words, Is the type of IDin .edmx matched to the database?
By the way, it seems that this issue is more related to EF. You could post this issue on EF discussion for better support.
Thanks & Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Importing a catalog when the images are stored offline
I have cataloged 126 DVDs worth of images, around 7000 in all (lots of big TIFFs) As I have done this over the last year, I have selected "import from current location" option so that the actual images stay on the DVDs and I just have the previews in
-
How to populate a column value dynamically based on org id value
Hi, I have two columns in a table program_id and org_id, I need to populate program_id = 1 for org_id = 100 I need to populate program_id = 2 for org_id = 101 for populating org_id i am using "fnd_profile.value('ORG_ID')". This is working fine. But w
-
broken power button
-
How can I get approver of a request in request based provisioning
How can I get the approver of a request in Request Based Provisioning if the request is assigned to a group of user. I need to get the actual approver (the one who logged in and approved amongst the approver group ) while the provisioning process get
-
Hi, We are adding PDF pages from one docment to aother document by using below acrobat plugin API: First PDF(pdDocFirst): No of pages: 1 Second PDF(pdDocSecond) No of pages: 10 PDDocInsertPages(pdDocFirst ,0 ,pdDocSecond ,5 ,1 ,PDInsertAll ,NULL,NULL