Web Service Support
Hi,
I was wondering if the web service wsdl import and class generation supports all the different types of encodings (RPC, Document Literal,etc..).
I am getting a null being returned...I was wondering if there is a way to get the actual soap response or to output it in some way...to see whats going wrong.
Thanks,
Ashish
Hi,
I was wondering if the web service wsdl import and
class generation supports all the different types of
encodings (RPC, Document Literal,etc..).Please see the JAX-RPC spec at http://java.sun.com/xml/downloads/jaxrpc.html for a complete explanation of the types of encodings supported.
>
I am getting a null being returned...I was wondering
if there is a way to get the actual soap response or
to output it in some way...to see whats going wrong.Have you checked the deployment server log? From the server navigator, on the localhost:4848 node, choose "View Server Log" from the context menu.
- David
Similar Messages
-
Does web service support all the properties in the standalone BI console?
Hi,
Currently I am using BI web service API to get the report and its parameters and so on. But I find that the object definition in the web service can't be full defined to match the properties in the console UI. For exaple, ReportDefinition object there is no description property, so I can't get the desc by the ReportDefinition object (By now I don't know how to get it). Another sample is, there is no Parameter object defined in the web service, only ParamNameValue object, so I can't get the default value for the parameter defined in the console UI.
Is there any solution for me?
HELP!!!It is just not working for me. I am using static stub.
After tracking the HTTP traffic, I found that the WL70 server is not issuing any
cookie. I have configured all the parameters for tracking session in the web application,
but I still don't see any cookie in the HTTP headers from the server. I also tried
to invoke the service using a browser, still no cookie seen. Is this a bug or
there is some other configuration for the server?
- Hao
"manoj cheenath" <[email protected]> wrote:
By default client will maintain the session. You dont have to set this
property.
Are you using static or dyn client?
Also, you should use the same instance of the stub for all your invokes
(all invokes to be in the same session).
regards,
-manoj
"Hao Chen" <[email protected]> wrote in message
news:[email protected]..
It is not working for me.
When I set the "javax.xml.rpc.session.maintain" property, weblogicthrows
"UnsupportedOperation"
exception and be default I don't see any session information beingpassed.
How do I configure the client side or even the server?
Thanks.
- Hao
"manoj cheenath" <[email protected]> wrote:
WL70 client does support http session. Is this not
working for you?
regards,
-manoj
"Hao Chen" <[email protected]> wrote in message
news:3d6402ac$[email protected]..
Does anybody know how to make WL70 Web Service support sessions?
The "javax.xml.rpc.session.maintain" property on Stub does not seemto
work.
Without session support, it is almost no use for us because we haveto
authenticate
the user each time.
Thanks in advance.
- Hao -
Does WL70 Web Service Support Sessions?
Does anybody know how to make WL70 Web Service support sessions?
The "javax.xml.rpc.session.maintain" property on Stub does not seem to work.
Without session support, it is almost no use for us because we have to authenticate
the user each time.
Thanks in advance.
- HaoIt is just not working for me. I am using static stub.
After tracking the HTTP traffic, I found that the WL70 server is not issuing any
cookie. I have configured all the parameters for tracking session in the web application,
but I still don't see any cookie in the HTTP headers from the server. I also tried
to invoke the service using a browser, still no cookie seen. Is this a bug or
there is some other configuration for the server?
- Hao
"manoj cheenath" <[email protected]> wrote:
By default client will maintain the session. You dont have to set this
property.
Are you using static or dyn client?
Also, you should use the same instance of the stub for all your invokes
(all invokes to be in the same session).
regards,
-manoj
"Hao Chen" <[email protected]> wrote in message
news:[email protected]..
It is not working for me.
When I set the "javax.xml.rpc.session.maintain" property, weblogicthrows
"UnsupportedOperation"
exception and be default I don't see any session information beingpassed.
How do I configure the client side or even the server?
Thanks.
- Hao
"manoj cheenath" <[email protected]> wrote:
WL70 client does support http session. Is this not
working for you?
regards,
-manoj
"Hao Chen" <[email protected]> wrote in message
news:3d6402ac$[email protected]..
Does anybody know how to make WL70 Web Service support sessions?
The "javax.xml.rpc.session.maintain" property on Stub does not seemto
work.
Without session support, it is almost no use for us because we haveto
authenticate
the user each time.
Thanks in advance.
- Hao -
Web Services support for collection like ArrayList
Getting this error message:
"<Info> Did not find property empty in java.util.ArrayList:
java.lang.NullPointerException"
Are collections like ArrayList supported or am I trying to do something that
can't be done? Any suggestions?
Thanks
DannyHi Danny,
Betcha thought I forgot 'bout cha, huh?
I didn't ;-)
The short answer to your question is no; WLS 6.1 does not support using any of
the classes in java.util.*. However, it does support Object arrays as an element
of an Object array, which means you can have code in you service implementation
that looks like this:
public Object[] getNestedObjects()
Object[] objects = new Object[2];
objects[0] = new Object[]{
new String("23.76"),
new Float((float)23.76)
// Here, WorkOrder is a JavaBean or an object
// that implements weblogic.soap.xml.XMLizable
WorkOrder[] workOrders = new WorkOrder[]{
new WorkOrder(),
new WorkOrder(),
new WorkOrder()
objects[1] = new Object[]{
new String("My name is"),
new String("Slim Shady"),
workOrders
return objects;
The main issue I see with doing this is again, interoperability ;-)
If the SOAP toolkit consuming the WSDL for the web service with the above method
cannot handle the "xsd:anyType" XML Schema data type, you're in trouble. In general,
SOAP toolkits want to know what type an element is so they can process it correctly.
When you use a Variant data type (in Visual Basic) or java.lang.Object (in Java),
you are basically promoting the use of weak data typing (or late binding). From
what I've read about SOAP (well, actually what Don Box said he had in mind), XML
Schema and namespaces were adopted to combat this very thing- weak or no data
typing. Personally, I agree ;-) I think strong data typing makes processing a
SOAP request much easier and faster, for everyone. Don't get me wrong, I don't
have anything against object casting, but SOAP parameters (and return values)
are not objects. They are XML elements, just like the other parts of the SOAP
message. There is no behavior, just state. This being the case, isn't it safer
to stick with the data types (e.g. arrays, structures, primitives, etc.) defined
in the SOAP spec and "XML Schema Part 2: Datatypes" document? Enough SOAP boxing
(pun intended). If you are interested in the "complexTypes" object graphs (using
developer defined classes that implement weblogic.soap.xml.XMLizable) lab results,
I can send you a zip. The biggest difference between using JavaBeans and objects
that implement weblogic.soap.xml.XMLizable, is that you have much more control
over which Java objects the later gets serialized/deserialized to/from. With classes
that implement weblogic.soap.xml.XMLizable, the SOAP processor passes you the
actual XML stream for the SOAP parameter (which in this case, is your developer
defined class). It (the SOAP processor) also calls your developer defined class
to get an XML representation for it's data types. It works great with Java clients
(using the client.jar, of course), and I'm trying it out with .NET and MS SOAP
clients this weekend. The most interesting revelation was figuring out how wsgen
(well, actually the WSDL processor) generates the information in the <types> element
of the WSDL ;-) I actually even know how to code an XMLizable so that it produces
the exact element and attribute names I want. I also figure out how to get it
to produce an <element ...>, as opposed to a <attribute ...>, and visa versa.
Of course, WLS 7.0 (and WebLogic Workshop) make all of this a moot point, but
it was fun to get the SOAP/WSDL processors in WLS 6.1 to "do my bidding" for a
short while ;-)
Regards,
Mike Wooten
"Danny Ngo" <[email protected]> wrote:
>
Hi Mike,
Thank you for your response. Do you know if WLS 6.1 Web Services support
the
return of nested object array (object that contains other object arrays).
Thanks
-Danny
"Michael Wooten" <[email protected]> wrote:
Hi Danny,
For interoperability (with non-Java SOAP implementations)reasons, the
Java collections
are not supported in WLS 6.1 ;-) You should consider using an arrayin
place of
this.
Regards,
Mike Wooten
Danny Ngo <[email protected]> wrote:
Getting this error message:
"<Info> Did not find property empty in java.util.ArrayList:
java.lang.NullPointerException"
Are collections like ArrayList supported or am I trying to do something
that
can't be done? Any suggestions?
Thanks
Danny -
How Web Services support transactions ?
Hello,
I have this questions:
- Web services support statefull?
- There is some specification about 2PhaseCommit for Web Services?
- How Web services handle transactions (commit, rollback)?
- How can I handle commit across multiple systems (using web services)?
There are standards that support this topics?
Best regards,
Luis CarlosYes and no. <a href="http://www.w3.org/Protocols/rfc2109/rfc2109.txt">rfc2109</a> . This means that cookies provide a kind of session and therefore state, which can be hold on server side.
SAP ABAP ERP holds session:
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/b7/d7baaf1481a349ab723e3acd7334b3/frameset.htm">Providing and Consuming Web Services</a>
"WSDLs - There are two kinds of WSDLs Standard and SAP WSDL. The standard WSDL is provided for those users who will use tools from other vendors to create clients. For SAP users, there is an extended SAP WSDL. This is an extended version of WSDL and can be parsed using SAP tools (SAP Proxy Generator), thus providing information about additional Web service requirements such as authentication, session, and so on."
for me is also the technical implementation - how is the webservice session managed on server and on client - not totally clear. If someone can help me to find exaxct technical details. Unfortenately I also always used it (esp. with Web Dynpro) without thinking about details. -
Web Service Support for WebLogic
Add Support for Web Services to WebLogic using IONA's XMLBus
For anyone interested in Web services, IONA has just released a free
technology preview of iPortal XMLBus, with support for BEA WebLogic 6.0
patch 1. You can download it today from www.xmlbus.com, a Web site entirely
dedicated to Web services.
The iPortal XMLBus Technology Preview enables Java Developers to turn
existing EJBs and Java Applications into Web services. XMLBus is 100% pure
Java and installs seamlessly on top of the
WebLogic. It implements the W3C v1.1 draft specifications of SOAP and WSDL.
SOAP is the communication protocol used by Web services to traverse over
HTTP, SNMP, and FTP. WSDL has become the standard for describing Web service
interfaces in XML.
XMLBus automates the process of turning Java classes into Web services,
ensuring that Java developers do not need to learn a whole new programming
language to turn existing applications into Web services.
Wizards guide the developer through the identification of interfaces and
methods the developer wants to become a Web service. The wizard deploys a
SOAP Listener and a WSDL interface for that Java Class, as well as Java
client proxy applications. The client proxy can easily be incorporated into
any Java Application to invoke the corresponding methods described in the
WSDL.
Download a free copy of the iPortal XMLBus Technology Preview from:
http://www.xmlbus.com/work/
Post Questions to the XMLBus Newsgroup:
news://inews.iona.com/iona.products.xmlbus
For more information on SOAP or WSDL, reference: http://www.xmlbus.com/learn
thanks
becky
Rebecca Dias
Technical Product Manager
IONA Technologies
http://www.iona.com
http://www.xmlbus.com
Mailto:[email protected]This is fixed now. Someone had defined a Servlet for the web service in web.xml that was preventing the EJB container to kick in.
Edited by: user572625 on Aug 25, 2011 11:54 PM -
Does Xcelsius support Microsoft Windows Communication Foundation Web Services? I've downloaded the trail version of Xcelsius Engage 2008 and when I try to load a WCF WSDL I get an error message stating Unable to Load.
Thanks in advance,Hi Zhong,
Thanks you for your reply and shared link. I have read that post before i post here. I'll read again.
I do understand on "PreAuthenticate" like this. I'll be receive 401 first request if i set "PreAuthenticate=true". Because i haven't pass authentication to server. After authentication is successful
I'll receive 200. So response should be like 401,401,200. Same as your explanation to me.
But it does not mean it'll send the authentication information the first time HttpWebRequest send request to the server. So the server will give you a 401 response at the first request, then the HttpWebRequest will resend the request with the Authentication header information.
In the subsequent requests, the authentication information will be cached.
But why i got 401 again after i passed authentication to server and server already cached the authentication. It should be
401,401,200,200.
Now i got 401,401,200,401,200. I confuse on this part.
If i use below code
// Below is work but i can't use for my requirement.
_Cred = new NetworkCredential("user", "password", "domain");
credCache.Add(new Uri(url), "Negotiate",
_Cred);
req = (HttpWebRequest)WebRequest.Create(url);
req.PreAuthenticate = true;
req.Credentials = credCache;
resp = req.GetResponse();
if (req.HaveResponse)
resp.Close();
req = HttpWebRequest.Create(url) as HttpWebRequest;
req.PreAuthenticate = true;
req.Credentials = credCache;
resp = req.GetResponse();
if (req.HaveResponse)
resp.Close();
I'll get 401,401,200,200. Third time response is 200. Only different is user name and password and DefaultNetworkCredentials.
Am i misunderstand on this? I appreciate your help.
Regards,
Yukon
Make Simple & Easy -
Asynchronous web services support?
Hi all
Please advice is async web service calls are supported in siebel crm on demand. Is web services are configurable through admin interface to support asynchronous?
Thank you.Any Information on Asynchronous Web Services request???
-
Integration Web Service Support?
Does the new Integration 7.0 BPM have web service/SOAP support?
In particular, I would like to start my workflow from a web service call, or be
able to call web services directly from tasks in my workflow. Can this be done?
Please advise,
DaveNo it does not. You have two choices. There is a alpha plug-in available to call
web services from a node task. It is for Integration 2.0. I have not been able
to run it against 7.0. The other option is to utilize workshop. There is a sample
on dev2dev. Search for integration interoperability.
"David Mrozek" <[email protected]> wrote:
>
Does the new Integration 7.0 BPM have web service/SOAP support?
In particular, I would like to start my workflow from a web service call,
or be
able to call web services directly from tasks in my workflow. Can this
be done?
Please advise,
Dave -
Hi,
Our scenario is based on ECC 6.0 sp12: soon many web service wil be created on that system.
For this purpose an installation of suport package 14 is sufficient (to get not obsole platform)? Instead it is better for us support package above or enhancement package?
we do not know if we will use Composition Environment with ESR and SR.
Thanks.Hi,
Enabling ECC with Enterprise Services is very tedious task and SAP is doing it for you by releasing new Enhancement Packs, so with every Ehp you get set of new services and improved features (for list of services visit here (available in pdf): http://help.sap.com/content/documentation/esoa/docu_esoa_erp.htm)
If you don't want standard SAP services then you can always develop them by your own (but you must adhere to strict SOA governance to avoid SOA chaos). To develop custom build service there are two ways:
- Bottom up: build RFC first and then convert it into services (not recommended)
- Top down: you need ESR to model services and then you can develop those services in ECC.
For your query on another thread:
'check if you are on Ehp3 else only definition of service exist (no actual service exist on ECC), Secondly you can't edit standard provider class from SAP you must create copy of service and then enhance'
I can not do the same thing with ECC sp14 with Composition Environment include ESR?
ESR = Only definition of services (skeleton only)
ECC = Actual implementation of service.
Sometime people can see service in ESR but they wonder why they are not able to use it in ECC, to be able to use them in ECC you must have corresponding Enhancement pack installed on ECC.
Regards,
Gourav -
Web Services support-JSR-172 implementation
Are there specific devices which supports Web-Services or all the devices supports JSR-172 ?
Thanks in advance.
Krishansimple google search will do.... http://www.j2mepolish.org/devices/devices-webservice.html
-
How web services support SAP transactions
Hi ,
How does webservices technology support SAP t-codes?
Regards
RajuYes and no. <a href="http://www.w3.org/Protocols/rfc2109/rfc2109.txt">rfc2109</a> . This means that cookies provide a kind of session and therefore state, which can be hold on server side.
SAP ABAP ERP holds session:
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/b7/d7baaf1481a349ab723e3acd7334b3/frameset.htm">Providing and Consuming Web Services</a>
"WSDLs - There are two kinds of WSDLs Standard and SAP WSDL. The standard WSDL is provided for those users who will use tools from other vendors to create clients. For SAP users, there is an extended SAP WSDL. This is an extended version of WSDL and can be parsed using SAP tools (SAP Proxy Generator), thus providing information about additional Web service requirements such as authentication, session, and so on."
for me is also the technical implementation - how is the webservice session managed on server and on client - not totally clear. If someone can help me to find exaxct technical details. Unfortenately I also always used it (esp. with Web Dynpro) without thinking about details. -
Support for document and documentwrapped web services
List,
Are "document" and "documentwrapped" style web services supported in WSL 8.1 SP1?
The
documentation referenced below [1] [2] indicates that these styles are supported,
but in the
Unsupported Features section of the Web Services overview [3] states the RPC literal
style and
Document encoded style are not supported. It is my understanding that the style
attribute
values of the servicegen ant task map to the SOAP encodings as follows:
RPC -> SOAP RPC
documentwrapped -> SOAP RPC-literal
document -> SOAP document-literal
Is this correct?
Regards,
Kent
[1] http://edocs.bea.com/wls/docs81/webserv/design.html#1038901
[2] http://edocs.bea.com/wls/docs81/webserv/anttasks.html#1063540
[3] http://edocs.bea.com/wls/docs81/webserv/overview.html#1074641So is it a true statement that if I use the documentwrapped style, I don't have
the restriction
of having only one void method while gaining the scalability and performance benefits
[1] of
SOAP document-literal encoding? Does the documentwrapped style have any restrictions
regarding out and in-out parameters? If so, what is the correct way in Java to
specify a
parameter as "IN" only?
Thanks again,
--Kent
[1] http://dev2dev.bea.com/products/wlworkshop/articles/Cohen.jsp
"manoj cheenath" <[email protected]> wrote:
This is correct. In the doc/lit bare case, a
method with no parameter will have an empty
soap envelope. If you look at the schema for
this operation, it will be an empty complexType.
So in the style, you can only have one void
method. WLS tools (servicegen/source2wsdd) do
not enforce this. Which I think is a bug.
Hope this helps,
-manoj
http://manojc.com
"manoj cheenath" <[email protected]> wrote in message
news:[email protected]...
This is correct. In the doc/lit bare case, a
method with no parameter will have an empty
soap envelope. If you look at the schema for
this operation, it will be an empty complexType.
So in the style, you can only have one void
method. WLS tools (servicegen/source2wsdd) do
not enforce this. Which I think is a bug.
Hope this helps,
-manoj
http://manojc.com
"Kent Kvarfordt" <[email protected]> wrote in message
news:[email protected]...
Bruce,
How do the restrictions apply to methods that do not have any paramters?
>>>
I have attached a copy of the weblogic webservice complex example that I
modified
to use
document style encoding and contains two noarg methods, getVersion
and
getAnotherVersion. I also modified the buy and sell methods to take single arguments.
Following are the results from the test web page for a call to getAnotherVersion.
<!--REQUEST.................-->
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<env:Header>
</env:Header>
<env:Body>
</env:Body>
</env:Envelope>
<!--RESPONSE.................-->
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<env:Header>
</env:Header>
<env:Body>
<n1:buy
xmlns:n1="http://www.bea.com/examples/Trader">getVersion</n1:buy>
</env:Body>
</env:Envelope>
What am I missing? BTW - I am using Weblogic Server 8.1 SP1.
Also, how does the weblogic documentwrapped style map to the SOAP encodings
SOAP RPC, SOAP RPC-literal, and SOAP document-literal? Are the messages encoded
SOAP doc/lit, but the programming model allows for multiple parameters? Is
the documentwrapped style specific to weblogic webservices?
And finally, given Java is a pass by value language, do I need to
do
anything
special to the webservice method signatures to specify the parameters
as
"IN"
parameters?
Thanks for all the help. From looking at the list traffic, your
keeping
busy.
Regards,
Kent
Bruce Stephens <[email protected]> wrote:
Hi Kent,
There are restrictions on the doc/lit style of encoding, such as
the
methods that implement each operation of the Web Service can have only
one parameter and the methods that implement each operation cannot use
out and in-out parameters. The documentwrapped generates a resulting
Web Service operations that can take any number of parameters, although
the parameter values will be wrapped into one complex data type in the
SOAP messages. Manoj has an example of documentwrapped [1].
We do not support rpc/lit. You might want to review this note by Yasser
Shohoud, it explains this in exquisite detail [2]
Regards,
Bruce
[1]
http://manojc.com/?sample14
[2]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwebsrv/h
tml/rpc_literal.asp
Kent Kvarfordt wrote:
List,
Are "document" and "documentwrapped" style web services supported
in
WSL 8.1 SP1?
The
documentation referenced below [1] [2] indicates that these styles are supported,
but in the
Unsupported Features section of the Web Services overview [3]
states
the RPC literal
style and
Document encoded style are not supported. It is my understanding
that
the style
attribute
values of the servicegen ant task map to the SOAP encodings as
follows:
RPC -> SOAP RPC
documentwrapped -> SOAP RPC-literal
document -> SOAP document-literal
Is this correct?
Regards,
Kent
[1] http://edocs.bea.com/wls/docs81/webserv/design.html#1038901
[2] http://edocs.bea.com/wls/docs81/webserv/anttasks.html#1063540
[3] http://edocs.bea.com/wls/docs81/webserv/overview.html#1074641 -
Performance impact of using Web Services?
As BEA and other vendors continue to add Web Services support
to their enterprise software, what is your plan for
quantifying the performance impact and the functional
correctness of using web services before going live with the
final application?
Empirix is hosting a free one hour web event discussion on
web services testing and automated web services testing
solutions on Thursday, January 17, 2-3pm Eastern time.
To sign-up for this web event or learn about other web
events being offering by Empirix this month, go to:
http://webevents.empirix.com
For your convenience, here is the complete abstract:
The advent of web services has brought the promises of
integrating multiple software applications from
heterogeneous networks and for exchanging information
from vendor-to-vendor or vendor-to-consumer in a
standardized way.
As web service technologies are deployed within and across
organizations over the next several years, it will be
critical that web services undergo performance testing.
As with any enterprise software project, the adoption of
proper test methodologies and use of testing tools will
play a key part in the overall success or failure of
projects utilizing web services. In a compressed
software project schedule, an organization must
quickly determine if its web services will operate
successfully under a variety of load conditions. Like other
web-based technologies, successful web services will need
to respond quickly and correctly when implemented.
During our presentation, we will discuss the testing
challenges created by this emerging technology, along with
the variety of testing solutions available. Automated
web service testing will be discussed and demonstrated
using FirstACT, the first web services performance testing solution available
on the market. Using a sample web
service, automatic test case creation, scalability testing,
and results analysis will be explored.
If you wish to download FirstACT prior to the web event, you can do so at:
http://www.empirix.com/downloads/FirstACTAs BEA and other vendors continue to add Web Services support
to their enterprise software, what is your plan for
quantifying the performance impact and the functional
correctness of using web services before going live with the
final application?
Empirix is hosting a free one hour web event discussion on
web services testing and automated web services testing
solutions on Thursday, January 17, 2-3pm Eastern time.
To sign-up for this web event or learn about other web
events being offering by Empirix this month, go to:
http://webevents.empirix.com
For your convenience, here is the complete abstract:
The advent of web services has brought the promises of
integrating multiple software applications from
heterogeneous networks and for exchanging information
from vendor-to-vendor or vendor-to-consumer in a
standardized way.
As web service technologies are deployed within and across
organizations over the next several years, it will be
critical that web services undergo performance testing.
As with any enterprise software project, the adoption of
proper test methodologies and use of testing tools will
play a key part in the overall success or failure of
projects utilizing web services. In a compressed
software project schedule, an organization must
quickly determine if its web services will operate
successfully under a variety of load conditions. Like other
web-based technologies, successful web services will need
to respond quickly and correctly when implemented.
During our presentation, we will discuss the testing
challenges created by this emerging technology, along with
the variety of testing solutions available. Automated
web service testing will be discussed and demonstrated
using FirstACT, the first web services performance testing solution available
on the market. Using a sample web
service, automatic test case creation, scalability testing,
and results analysis will be explored.
If you wish to download FirstACT prior to the web event, you can do so at:
http://www.empirix.com/downloads/FirstACT -
10g: Invoking a web service asynchronously from BPEL
Hello,
I am trying to figure out a good, generic method for making a previously synchronous web service asynchronous and changing the way in which it is invoked from BPEL. I am using SOA Suite 10g (10.1.3.5)
As I understand, one possible method to achieve this is to use IDeliveryService.post() to deliver the web service's response to the BPEL process. For this route, the standard practice of correlation seems to be to supply a correlation Id when invoking the web service and returning the same correlation id as a part of the web service's response message. However, I want to avoid this since it would mean that all response messages from the web service (10+) would have to be modified to include a correlationId, which is problematic in the special case of this web service. Including a correlationId in the request message is possible, however.
I have tried the approach of using the conversation Id directly instead of the correlation Id, by reading the value of ora:getConversationId(), passing this to the web service and setting the property CONVERSATION_ID of the response NormalizedMessage to the same value when returning. However, I cannot seem to get this approach right. Is this possible at all?
An alternative might be to use WS-Addressing, but I do not know if I can make the web service support this - it is written using the EJB WebService-Annotations feature and runs on OC4J as well.
Do you have any suggestions on how this problem could be resolved?
Edited by: 901765 on 12.12.2011 06:01I have found the following tutorial that implements something similiar to what I am trying to do: http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/10g/10135/odiscenario_bpelcallback/odiscenario_bpelcallback.htm#t3
Because of this, I am now confident that the conversation IDs can be used to achieve correlation. I have implemented the pattern by performing
an invoke activity on the web service, passing the result of ora:getConversationId() as part of the message. The conversation Id returned is of UUID-Form.
After the invoke activity, I have added a pick activity to receive the response message supplied by the web service through IDeliveryService.post(...). I can see that the message is received correctly by loooking at the contents of DLV_MESSAGE. However, the pick activity times out every time (after 10m). Looking at DLV_SUBSCRIPTION reveals that the conversation_id for the pick/receive activity is set to a value of the form bpel://localhost/default/MyBpelProcessName~1.0/7610001-BpInv0-BpSeq2.7-2. As far as I know, this should instead be set to the UUID that ora:getConversationId() returned before performing the invoke activity. What is going wrong here?
Thanks for your help!
Maybe you are looking for
-
Firefox worked earlier today (August 19, 2013 about 6:30 pm EDT). When I opened Firefix after 9pm EDT, Firefox attempted to perform an update. No error was given, but now Firefox will not start. Running a Windows 8 machine with all updates and curren
-
Can I publish the HTML to embed a SWF file created from freehand so that I can post it to the web? Or another way of asking the same question is how do you put the SWF files created from FreeHand on to your websites?
-
Problem with TableCellRenderer
Hi all, I need to put a JLabel within an ImageIcon in third column of a JTable, so i implement the TableCellRenderer , i test the code, but only text show, third column's JLabel doesn't show, it shows : javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=
-
Insert a mysql resultset to a jTable
Hi! I have a database which i can connect to and get information from, but i can't figure out how to insert my resultset into my jTable from two different classes, I found an good exaple on the web but i dont know how to split up the code. I work wit
-
HT1766 why won't my ipad 2 charge?
Cannot charge my i pad?