Webservice Integration

Hi,
I have developed a sample web service using axis and deployed
onto a tomcat server. Both the client and the servers reside in the
same domain.
One of the web services takes a java object as an input. I
did not find any reference where I could send the java object to
mx:WebService tag. The java class definition is part of the WSDL
and is defined using XML schema.
e.g.
<mx:WebService id="ws"
wsdl="/path/to/wsdl"
showBusyCursor="true"
useProxy="false">
<mx:operation name="GetValue">
<mx:request>
//how to pass the java input object ?
//mx:object ? If so, how ?
</mx:request>
</mx:operation>
</mx:WebService>
Any ideas as to how to best handle such situation ? Any
samples or pointers ?
Thanks in Advance.

Hello.
I can not exect way without looking your WSDL, but I think
you can sent input data as a object of ActionScript.
In my project, some WebService methods, which need a few
parameters, are called like this:
<mx:operation name="someOperation">
<mx:request>
<Account>{user.Account}</Account> <-- Normal
String
<Password>{user.Password}</Password> <--
Normal String
<Record>{record}</Record> <-- Object
<mx:request>
</mx:operation>
The object named "record" is a object defined like this:
class aRecord {
private var Id:Number = 0;
private var Data:String = "";
public function aRecord():void {
this.Id = id;
this.Data = data;
Sorry my poor English but I'm glad this will be any help with
you...

Similar Messages

  • Object to Object in WebService Integration Tier

    Hello,
    I'm working in a Financial application.
    We use WebService as main datastore.
    So, i designed a facade for WebService integration into the Application.
    With a SOAP engine (Axis, Xfire) a have generated Class representing the message info and request/respond for the webservice.
    In the Application, i designed a Business Model and the WebService Model is different.
    My needs :
    What is the best way to map WebService Object to the Application Business Model in a flexible and configurable way ?
    I though about a "Service" to provide such a Mapping.
    But, i want the ervice to be flexible a modifiable (not mapping hard coded)
    This is probably not 100% OO Pattern question but ...

    If the WebService is a datastore, then the Data Access Object design pattern could be applied to facilitate behavior between the WebService object and the application's Business Tier.

  • Siebel On Demand Outbound Webservice integration using bpel question

    Hello everyone,
    I have a question I am hoping the forum can help me out with
    I am trying to do an integration using bpel with Siebel on demand as the begining point. The bussiness case is that I want qualified leads to be extracted out of the Siebel On Demand crm to be integrated into a back end system. This is put into a queue in the integration events. I have read the forum on all the session id and intermediate java code that provides the session id. I noticed that Siebel on demand is not a webservice requestor and only a webservice provider even for outbound messages. Since bpel always needs an input of some sort how would I kick off bpel to keep checking the queue not to mention getting the session id ect?
    Any help would be great :)
    Jaden

    Hi ,
    An integration even is something that is configured using a workflow. Like say when a Lead field is modified of r a particular Lead this even fires and will go and reside in Integration Even Queue.
    A separate bpel process is then required to read the Integration Queue (wsdl's available) and then process this even for the lead.
    Regarding extraction of Leads from SOD it need to have any Inegration events. Even without this we can do it. Just make a webcall using the Lead wsdl and then process th erecords usinga while Loop stucture. You can use a DB adapter to write to the target Database tables.
    Nyjil

  • Webservice Integration with SAP using SAP XI

    On a periodic basis, say end-of-shift, My product(Web service) sends to the SAP system the total production for that period, for example, Hot Metal produced. The data packet contains all theinformation required to uniquely identify the production period (plant name, location, furnace number, shift
    number, date & time).
    SAP receives the data packet, stores the data in appropriate tables and acknowledges the status to My Product. The acknowledgement contains total revenue generated based on the production (computed based on the unit cost of Hot Metal). If the data is incorrect, SAP sends a fault message. The revenue value received as response is stored in an appropriate tag in the My Product model.
    I want to use SAP XI as the connector between my webservice application and SAP. Please suggest me what scenario should I implement in this case. Do I need to use BPM here ?
    Also please suggest what are relevant IDocs and BAPIs for this scenario.

    Got it...

  • SAP Business Workflow and Webservice Integration

    I have scenario in which I need to Integrate SAP Workflow with a Inhouse UI Application through Webservice.
    Design:
    I want to use the Workflow for Task management. However whenever user has to perform a event I want to push the work item into another inhouse application which has capability to invoke/receive webservice. The inhouse application should only perform user events and publish the message back to workflow. Work Item management will be done in SAP Workflow. I need to send the data container to and from SAP Workflow.
    Is there any problem in the above design?
    How can I achieve the same in SAP Workflow?
    Can any one share the experience?

    I would like to know as well about this, did you get an answer?
    Thanks for any pointers.

  • OSB inbound http webservice integration with OAM

    Hi,
    I have a requirment where I need to protect OSB inbound http webservice with OAM. So that OAM can fetch the user details from webservice SOAP header & authenticate the user against LDAP.
    Can someone tell me if this is a feasible approach. If yes, please share the details as to what configuration changes need to be done at OAM & OSB end.
    If not, is there any alternative approach to secure webservice with OAM.
    This webservice is not called from any web application. External sources dirctly make a call to this webservice through some java client.

    The solution to this issue is to put following line in mod_wl_ohs.conf file
    MatchExpression /imaging WebLogicHost=test-ipm.atfoods.com|WebLogicPort=16000
    The complete element will look like this.
    <IfModule weblogic_module>
    WebLogicHost test-ipm.atfoods.com
    WebLogicPort 7001
    Debug ALL
    WLLogFile e:/logs/weblogic_ohs.log
    MatchExpression /imaging WebLogicHost=test-ipm.domain.com|WebLogicPort=16000
    </IfModule>
    <Location /imaging>
    SetHandler weblogic-handler
    WebLogicHost 192.168.140.74
    WeblogicPort 16000
    Debug ALL
    WLLogFile f:/log/wlipm.log
    </Location>
    Make sure that you use IP for Weblogic host in 2nd element and not the host name.
    Thanks & Regards,
    Vikrant Korde

  • Flash & Webservices Integration

    I have a multiplayer game (4 users) that is developed in
    Flash and uses Webservices along with .NET.
    The host gives an invite to other three users and then the
    invite popup flashes for them. After accepting the invite the game
    window should launch for other all the players.
    This works fine when we are playing the game in our own
    network but when the game is hosted on the test or live
    environment, the Flash container window hangs randomly for one or
    two players. This problem happens in Internet Explorer. I tried
    Fiddler to trace the problem but with Fiddler everything seemed to
    work fine.
    Please help.

    Yes, I also suspect that but I am not able to figure out how
    to go about solving this problem. Is there a way I can check this
    is communication gap problem and what would be the appropriate
    method to catch the requests.

  • SIbel webservice integration with BPEL

    Hi,
    While invoking a siebel webservice having endpoint
    soap:address
    location="http://10.24.5.16/callcenter_enu/start.swe?SWEExtSource=WebService&amp;SWEExtCmd=Execute&amp;UserName=sadmin&amp;Password=sadmin"
    I'm getting
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; charset=UTF-8
    error from BPEL Console.
    Would anybody update what need to done or changed?

    I've seen this before. The key part is "Not a valid SOAP Content-Type: text/html". Basically Siebel is throwing up an HTML error screen because something went wrong with the service invocation. BPEL sees this and doesn't know what to do with because it's not SOAP/XML.
    You can use a tool like SOAPUI to invoke the service and see what the error screen is saying -- but it's usually something generic. I'm not a Siebel person but it might be easier to look in the logs on the Siebel side.

  • OVD and Webservice integration

    All of the profile information that I need access to is front-ended by Webservices and not inside LDAP. How well does OVD address this situation? Does the OVD attribute mapping, priority etc across many resources handle web services? If you needed to be able to aggregate profile attributes from many web services, defined by each application, would you use OVD or roll your own solution?

    in my case LDAP is out of the picture - all profile attributes I need to aggregate are dispersed amongst many resources front-ended by web services (some SOAP, some REST). This doesn't seem to me to be a unique scenario as most companies I am involved with do not maintain their customer profile data within LDAP. I want to assess OVD's ability/offered functionality (UI mapping screens,...) to address my scenario.
    thanks for the reply

  • MDM Webservice Integration

    Hi Experts,
    i have created a simple "CreateCustomer" Webservice in MDM with the WS Generator.
    How do i use this webservice from external? How could i get the WSDL file and so on?
    Any help is welcomed.
    Thanks,
    Chris

    Hi Chris,
    How do i use this webservice from external? How could i get the WSDL file and
    so on?
    You can find the wsdl from the system where you deploy yr webservice  i.e. in the last step of webservice generation application asked for system where you want to depoloy this webservice.Just goto that system using
    http:
    systemname:port and then select webservice navigator .here you can easily find your webservice by his name that you specified during webservice creation .select that webservice  and here you can easily find  the WSDL of yr webservice.
    You can easily use this webservice if you have access to that server and repositories.If you know how to consume webservices in java  then in the same you can consume this webservice.
    hope i clarify your doubt.
    Thanks
    Sudhanshu

  • What's up with Webservices and BPM integration?

    According to http://e-docs.bea.com/wli/docs70/design/intarch.htm, table
    3-1, webservices are a key component of the Integration architecture,
    which:
    "Provides sample code to support WebServices integration using
    WebServices technologies
    such as UDDI, WebServices Description Language (WSDL), and Simple Object
    Access
    Protocol (SOAP). WebLogic Integration provides the ability to invoke a
    WebService
    from a BPM workflow, enable a BPM workflow as a WebService, and to
    enable the
    Application View as a WebService. For an introduction to WebLogic
    WebServices,
    see the WebServices and XML Tech Track in the BEA dev2dev Online at the
    following
    URL:
    http://dev2dev.bea.com/index.jsp"
    The only thing which comes close to this description is the BPM Plugin
    for webservices, which is alpha code for WLI 2.1. To deploy this on 7, I
    have only seen a message here describing loosely what to do.
    So is this how we are expected to use webservices together with
    Integration? With alpha code that requires tweaking to work with the
    current version? Or am I missing something vital? The quote from the
    docs suggest "sample code", however the webservices plugin is not
    provided in source, so I don't see how it qualifies as sample code?
    Somehow I also don't quite understand how "sample code" can be construed
    as a "key component".
    So what's up with webservices and Integration?
    -Lasse
    (only speaking for myself in news!)

    Your comment about the lacking of web services in WLI is correct
    and a fundamental issue I have signalled to BEA already many
    months ago. I even followed the BPM course to make sure I did
    not miss an important point. The BPM course did not deal with
    webservices because it is not available. But the fundamental remark goes further
    because webservices also have a dynamic
    interface WSCI to behave within a choreography of webservices
    within a business process. BPM is still mainly workflow based
    and intracompany. This is not what is expected as business
    processes which are collaborative and a new paradigm alternative for applications
    conform BPML-WSCI or BPEL4WS-ws transaction.
    I still wait from BEA a confirmation that webservices and collaborative business
    processes according to (at least) one of
    the above standards will be included within the next version of weblogic enterprise
    platform due end of March 2002.
    Kind regards,
    Paul Meurisse
    Email : [email protected]

  • Error while testing External Web Service Integration

    I'm getting an error when I try to test an external webservice from Studio. After performing the steps to create an external webservice integration with SOAP, When I right-click on the .wsid file and choose "Test Service Operations" and chose the communication scenario and submit request, I get an error "A technical error error occured AP-RC-BDS-WS".
    I'm not able to call the service visa the ABSL script as well. When I debug, I get an error in the response CommFault as,
    "SoapfaultCode: 5 Server Error."
    I'm able to successfully test the web service from SOAPUI.
    Regards,
    Srikanth

    import ABSL;
    var Request: Library::AccProfExWebServInt.ZSI_Acc_Prof_Req_Obj.Request;
    var Response: Library::AccProfExWebServInt.ZSI_Acc_Prof_Req_Obj.Response;
    Request.ZMT_Acc_Prof_Req_obj.BUSINESS_GROUP = this.BusinessGroup;
    Request.ZMT_Acc_Prof_Req_obj.ZONE = this.Zone;
    Request.ZMT_Acc_Prof_Req_obj.REPRESENTATIVE = this.Representative;
    Request.ZMT_Acc_Prof_Req_obj.FROM_DATE = this.DateRange.StartDate.ToString();
    Request.ZMT_Acc_Prof_Req_obj.TO_DATE = this.DateRange.EndDate.ToString();
    Request.ZMT_Acc_Prof_Req_obj.REPORT_TYPE = this.ReportType;
    Request.ZMT_Acc_Prof_Req_obj.PROJS = this.Projects.ToString();
    Request.ZMT_Acc_Prof_Req_obj.SPECS = this.Specs.ToString();
    Request.ZMT_Acc_Prof_Req_obj.SALES_CALL = this.SalesCalls.ToString();
    Request.ZMT_Acc_Prof_Req_obj.TRAINING_ACTS = this.Training.ToString();
    //var Response = Library::AccProfExWebServInt.ZSI_Acc_Prof_Req_Obj(Request, " ", "AccountProfileScenario");
    Response = Library::AccProfExWebServInt.ZSI_Acc_Prof_Req_Obj(Request, "", "AccountProfileScenario");
    var CommFault = Response.CommunicationFault;
    var CommFaultItem = CommFault.Item;
    //Display Errors if any and return
    foreach (var item in CommFaultItem){
    raise MsgCommunicationFault.Create("E");
    return;
    //Display success message
    var ResponseUUID = Response.ZMT_Acc_Prof_Res_obj.EV_RESULT;
    raise MsgExternalResponse.Create("S");

  • How To : Call External Webservice from BPEL and pass SOAP Message to the WS

    Hello All-
    Greetings to all BPEL gurus. I am currently facing difficulties in calling an External Webservice from my BPEL Process and passing SOAP Message to it. The details are below:
    <strong>1. The BPEL process, using database polling feature of DB Adapter, will get the records from the database.</strong>
    <strong>2. Transform the message</strong>
    <strong>3. Call the External Webservice and pass the transformed message as the input to it. However the Webservice expects the BPEL process to send SOAP headers in the input message.</strong>
    I am struggling on how to put the transformed message within a SOAP envelope in the BPEL process.
    If anyone had similar requirements and have successfully been able to send SOAP messages from BPEL process to an external webservice, kindly let me know.
    Also if there is some kind of documentation or any link in the forum that I can refer, please let me know that as well.
    I am new to Webservice integration using BPEL and would really appreciate your help.
    Thanks In Advance
    Regards,
    Dibya

    Hi Dharmendra,
    I am trying to send a SOAP message from my BPEL process to a web service. I have a complete SOAP message in a complex variable defined in the wsdl for the partnerlink (web service). My problem is that when I invoke the partnerlink it fails even though the content shown in the BPEL console looks valid.
    I have set up obtunnel to see what I am actually sending out from BPEL. You mention that BPEL creates the SOAP envelope automatically.
    I think that my problem is a result of this automatic SOAP envelope that BPEL is creating. Do you know if there is a way to turn it off?
    This is what I see in the TCP monitor, please note the double SOAP env:Body:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Body> <RCMR_IN000002NR01 xmlns="urn:hl7-org:v3" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <env:Header>
    <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://testhost/CCS/Service_Endpoint</wsa:To>
    <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <wsa:Address>http://localhost/CCS/Service_Endpoint</wsa:Address>
    <wsa:Metadata>
    <device xmlns:hl7="urn:hl7-org:v3">
    </device>
    </wsa:Metadata>
    </env:Header>
    <env:Body>
    <RCMR_IN000002NR01>
    </RCMR_IN000002NR01>
    </env:Body>
    </RCMR_IN000002NR01>
    </env:Body>
    </env:Envelope>
    Any help is appreciated.
    Regards,
    Aagaard
    Edited by: Aagaard on Oct 30, 2008 8:59 PM
    Should have mentioned. I am using BPEL 10.1.3.4
    Edited by: Aagaard on Oct 31, 2008 8:43 AM
    I have opened a new thread for this question so as to not confuse the issue more than necessary.
    How many SOAP envelopes do you really need?

  • Integration with SAP order fulfillment?

    Hi, forgive me in advance for my ignorance and high-level questions in this post.  Though I am a good programmer, I have never used SAP before and am trying to learn as much as I can as quickly as I can.
    I am the founder and director of technology of a small nonprofit, www.sirum.org, that uses an online platform to streamline medicine donation from manufacturers and hospitals to community clinics that serve the uninsured.  We recently had a big break through with a number of large manufacturers that they would transition their current proprietary donation software over to us in order for us to develop a cross-manufacturing donation solution so clinics didn't have to deal with each company individually. 
    The catch is that I believe most if not all of these companies wanted backend integration of our service with their current SAP order fulfillment systems.  The webservice SIRUM is creating will have a clinic login to our site, order the medicine they need, tell each manufacturer how much of their drugs were ordered by whom, and then have a delivery request along with the clinics address sent to their distribution center. 
    I haven't discussed the integration component with them in anymore detail yet, but since I have never integrated a webservice with SAP - let alone even used SAP - before I wanted to get a sense of what a multiple manufacturer webservice integration would entail.  Namely,
    1) would we just create a WSDL with operations that tell the manufacturer how much was ordered? 
    2) Since we want the manufacturer to have little or no customization work on their end is there a way to also provide them an SAP program that then take information provided by our webservice and turns it into their ordering syntax. 
    3) Would this latter piece depend on what modules of SAP each manufacturer has installed, or does all order fulfillment use the same SAP module/solution?
    4) Would a solution involve a lot of customization from manufacturer to manufacturer? Is there a way to minimize the amount of customization without sacrificing integration?
    5) Do you guys/ladies have any good ideas of any features that could be added to the base functionality (sending an order of medicine from a clinic to a manufacturer and its distribution center for fulfillment)
    Thanks in advance for your time,
    Adam

    If I'm understand your question correctly, you want to send the order you receive on your web to the manufacturer. Then manufacturer will create a sales order and delivery order on their side and deliver the good to the clinic.
    In this case,
    1,2) It would be better for you to send the order to them instead of creating the wsdl for them to call. There is a standard format EDI for sales order that SAP use to interface with legacy system. You cna generate the data in this format and send to each manufacturer so they can configure the system on their side.
    3) The module is called SAP order fullfillment or SAP order-to-cash or SAP SD (Sales & distribution). It means the same thing just some people call it differnetly. SAP SD is the common one.
    4) Surely there will be some effort for each manufacture to integrate their system with you. However, If you use the standard EDI, the effort would be minimal for the manufaturer that already implement this with other partner.
    5) you can pass along the address in sales order. If the manufacturer system implemented SAP SD, they should be able to create sales order, delivery order and invoice from their side.
    Regards,
    Chaiphon

  • Integrating OSM with CRM & Inventory system

    Hi,
    We are using OSM 7.0 in our solution, in which we need to integrate OSM with CRM and one inventory system.
    We need to notify CRM at various stages during order fulfillment for e.g. after completing different milestones like Order submitted, Inventory Done and Order Completed. Among these notifications, Order Submitted notification would be a synchronous one and rest are the asynchronous notifications.
    We are not using AIA for integration with CRM. How we can send notifications to CRM for the above stated scenarios?
    Also, to integrate with Inventory system, we need to call a webservice exposed by that system. Could you please confirm if the below steps are correct to achieve the same or there is some other way?
    1. Write Automation plug-in
    2. Configure JMS queue on weblogic server
    3. Post request message on JMS queue
    4. Write JMS Client to get the message from the queue
    5. Package the message in SOAP envelop and call the webservice API.
    ~RS

    RS;
    In our AIA cartridges, we make use of automated OSM notifications to send events to Siebel CRM via AIA. There are several different kinds of notifications available in OSM, the ones that we use in particular for this purpose are data-change notifications which is invoked whenever a field on the order has changed (you configure which field when you create the notification). The field that you would want to listen for changes on in your case would be the field in the OSM order that you are using to store milestone/status information. The notification plugin would then be invoked whenever this field changes and can then send a status update to your CRM system if the change is relevant.
    As for your webservice integration question, first let me clarify - you are interested in invoking a web service via SOAP/HTTP instead of SOAP/JMS, is that correct?
    Assuming so, your basic steps below are directionally correct, but I would offer a few additional points to consider.
    Your automation plugin in step 1 would best (IMHO) be an XSLT or XQuery plugin vs. a custom java plugin. This will keep the scope of the business logic to the bare minimum of building up the SOAP message which of course XSLT and XQuery can handle with ease.
    I would recommend the payload of the JMS that you create in step 3 be the entire soap:envelope, this way your client in step 4 doesn't have to parse and wrap the message. It just blindly forwards it on to the real SOAP/HTTP endpoint and waits for a response.
    Your JMS client in step 4 would best be implemented by a message-driven-bean (MDB) which would be deployed to the OSM server instead of a standalone JMS client. MDB's are highly scalable JMS clients and really the way to go when you want to have some business logic be triggered based on the arrival of a JMS message.
    You probably need to add steps 6 and 7 which would be to deal with the response message back to your automation plugin. This would involve the MDB getting the SOAP/HTTP response back, creating a JMS message and putting it on the response queue (which would need to be defined in step 2) and copying the JMSCorrelationID value from the request to the response JMS message to ensure it can find its way back to the task that sent it.
    Now, all that being said, an alternative to all of this is to just have the automation plugin itself take care of posting the message to your SOAP/HTTP(s) endpoint. You could do this by writing a custom Java automation plugin that uses low level HTTP class libraries or uses standard WS client proxies to invoke the web service. There are pros and cons to this approach. The major pro being that it involves fewer moving pieces, the major con being that if your inventory service is not able to process requests as fast as OSM is making them (based on order volumes), then this may become a bottleneck in the OSM system. The bottlneck stems from the fact that OSM shares a pool of threads across all automation plugins. If you have one that is taking a very long time to process requests and the number of requests being processed concurrently is high, then this can lead to a situation where other automation plugins are starved. This won't result in an error, but it can result in a bottleneck which affects the overall performance of the system. This is really only a major concern if OSM is processing high volumes of orders and the inventory system is not able to keep pace.
    Brian.

Maybe you are looking for

  • How to get audio to an overhead projector from iPad

    Hello All. Has anyone figured out how to get audio from ipad to an overhead projector? I know I could mirror if I had HD, but I do not have HD at work.

  • Star schema design

    Hi, I know that in classical star schema the dimension tables sits within the info cube and so we cannot use this dimension table in any other cube we need to have separate dimension table for that cube thought it might be having same data. I also kn

  • Table rows arrangment?

    Hi, I want to give the user a tool (either in JSP or Applet) to arrange the existing rows in a table based on his/her wanted sequence. An example of this is implemented in Jdeveloper where you can right click on Entity or View object (left side on sy

  • Customize the author notification from the dispostion

    I have grown leaps and bounds with my URM knowledge since my last posting, but I am still running into some things that throw me for a loop. This is one of them. I created a disposition, and the action I selected was Notify Author. When the author ge

  • Why doesn't iPhoto Crashes

    I photo app for iPad has done nothing for me it crashes ..tried to connect to app help page ....that never happen ..post social site.and  never happens...What's Up... Maybe just uninstall..lose the money..