Webmethods and XI using HTTPS POST
hi,
i have an idoc->xi-cXML scenario.
when i do a https post to the vendor(runs on webmethods) they don't get the cxml but they can receive our namespace, interface, msg guid etc but not the cXML document itself.
I did transmit the same cXML to other vendors where they said they have received it and i got a confirmed 200 success message too.
now this leaves me wondering why this other vendor is not receiving it.
From xi i did everything - increase the trace levels to see the message and i see that the cxml message going out but i don't understand why they are not receiving it.
Any ideas how to troubleshoot this issue?
Is there anything wrong on XI end?
One more thing when i talked to the vendor-tech guy himself he thinks the way XI sends the cXML using HTTP POST might cause the cXML document for not receiving at other end?
Any help would greatly be appreciated.
Thanks,
Tirumal
chen -
Can you elobarate on what you suggested.?
Where can i check for the tcp gateway attached with note "soap faq"?
Appreciate for your response.
Thanks,
Tirumal
Similar Messages
-
File upload using http-post in OSB
Hi All,
I am trying to upload a file using http-post method in OSB.
I have created a business service pointing to the service url, with http method post.
and calling this business service from a proxy service.
I am unable to send the form data to the business service.
Please let me know how to send trhe form data and the file information.
The error given by Business Service is-
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is text/plain
Thanks in advance.
Seemant
Edited by: Seemant Srivastava on Oct 12, 2010 12:28 PMHi Anuj,
A sample HTML form code for. Post HTTP service-
<html>
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>CSV File</title>
</head>
<body>
<form method="post" enctype="multipart/form-data" action="http://xyz/UploadFile">
<table>
<tr>
<td> Feed id </td>
<td><input type="text" name="refid" value="" size="20"></td>
</tr>
<tr>
<td> Username (optional)</td>
<td><input type="text" name="username" value="" size="20"></td>
</tr>
<tr>
<td> Password (optional)</td>
<td><input type="password" name="password" value="" size="20"></td>
</tr>
<tr><td> Select CSV File </td>
<td> <input type="file" name="upload" value="" width="30"/></td>
</tr>
<tr>
<td><input type="submit" name="Ok" value="Go"> <input type="reset" name="reset" value="Reset"> </td>
</tr>
</table>
</form>
</body>
</html>
I need to pass all these information to OSB business service. -
How to Invoke service using HTTP POST in BPEL?
I have a client using .net service with a web page http://.../httpreceive.aspx which is invoke through an http post. How can we post xml message using http post to the url in BPEL. Are there any documentation on doing this? Will this require writing a java class to do an http post the xml message to the url?
Edited by: sns724 on Feb 12, 2009 11:56 AMI created a wsdl with the http-binding to do a HTTP Post and I'm getting a com.collaxa.cube.ws.wsif.providers.http.WSIFOperation_HTTP@1ac9964 : Could not invoke 'process'; nested exception is: java.lang.NullPointerException.
Here's my wsdl with the binding:
<definitions name="TestHTTPost" targetNamespace="http://test.com"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://test.com"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://hyphen.com"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="AddressBookEntry">
<complexType>
<sequence>
<element name="AddressBookNumber" type="string"/>
<element name="Name" type="string"/>
<element name="AddressLine1" type="string"/>
<element name="AddressLine2" type="string"/>
<element name="City" type="string"/>
<element name="State" type="string"/>
<element name="PostalCode" type="string"/>
<element name="Phone" type="string"/>
<element name="Fax" type="string"/>
<element name="Email" type="string"/>
<element name="ElectDest" type="string"/>
</sequence>
</complexType>
</element>
<element name="PostMessageResult">
<complexType>
<sequence>
<element name="Result" type="string"/>
<element name="Errors">
<complexType>
<sequence>
<element name="Error">
<complexType>
<sequence>
<element name="ErrorDescription" type="string"/>
<element name="ErrorSource" type="string"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="HTTPPostServiceRequestMessage">
<part name="payload" element="tns:AddressBookEntry"/>
</message>
<message name="HTTPPostServiceResponseMessage">
<part name="payload" element="tns:PostMessageResult"/>
</message>
<portType name="HTTPPostService">
<operation name="process">
<input message="tns:HTTPPostServiceRequestMessage" />
<output message="tns:HTTPPostServiceResponseMessage"/>
</operation>
</portType>
<binding name="HTTPPost" type="tns:HTTPPostService">
<http:binding verb="POST"/>
<operation name="process">
<http:operation location="/httpreceive.aspx"/>
<input>
<mime:mimeXml part="payload"/>
<mime:content type="text/xml"/>
</input>
<output>
<mime:mimeXml part="payload"/>
<mime:content type="text/xml"/>
</output>
</operation>
</binding>
<service name="HTTPPostService">
<port name="HTTPPost" binding="tns:HTTPPost">
<http:address location="https://testxml.solutions.com"/>
</port>
</service>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PARTNER LINK TYPE DEFINITION
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<plnk:partnerLinkType name="HTTPPostService">
<plnk:role name="HTTPPostServiceProvider">
<plnk:portType name="tns:HTTPPostService"/>
</plnk:role>
</plnk:partnerLinkType>
</definitions> -
How can I use HTTP POST?
Dear,
I need to take a test using the object http post for calling a webservice developed in. Net.
I have the following information from the webservice. Net:
POST /Level3Communication.asmx HTTP/1.1
Host: 10.110.70.129
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/ReceiveMessageFromMES"
How do I fit this information in HTTP POST object?
What should I fill in the URL field?
What should I fill in the Document to Post field?
What should I fill in the PostData field?
how do I declare the soap action using http post?
I did not find any example.
Could you help me?
Regards,
Sérgio SalomãHi,
check the blogs..
for recieving..
[Receiving E-Mail and processing it with ABAP - Version 610 and Higher]
for Sending
[Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface]
Regards,
Sathish Reddy. -
Upload an XML created in JDE to a website which uses HTTP POST, through BSS
Hi
My requirement is : in JD Edwards Enterpriseone XML file will be generated and kept in a folder. I need to upload that XML file to a website which uses HTTP POST? Is it possible to do this using BSSV? How? Please provide inputs immediately.
Thanks
TKYes, you could use BSSV for that. As I understand your post, you have an XML file, you just need to POST it. You would write a C BSFN that calls a BSSV, then in the Java code for that BSSV you would use Java capabilities to read the contents of the XML file and POST it. Look at B953002 - it calls the C API jdeCallBusinessService which makes the call out to the BSSV. The Service Consumer samples are a lot more complex than you need - you really just need to build up an XML string that matches the input value object of your BSSV and then call the C API.
If you also need to create the XML file, then you could also do that quite easily in the BSSV java code.
Of course all of this could also be implemented in a C BSFN or with Real Time Events and then some middleware to create and POST the XML file ... customers tend to choose the technology where they have the most familiarity and skill.
--Steve -
Loading applet using http-post
Hi,
I am trying to load applet using http-post and I can not figure out how can I get http post form parameters in applet. Can sombody please help me with this?
thanks
KamalHi Arun
actully i m doing all these stuff .
but still i m not being able to load .
do u have any code which can simplify this?
if u have plz send it at [email protected]
and also thanx for reply dear . -
Example of sending the po request to my partner using https post method
I need to send the po request to my partner using https post method.
Is there any example for my scenario in oracle b2b?
Usecase:
mycompany
othercompany
mycompany -> Posts xml document with no namespace -> othercompany
Protocol: httpsI need to send the po request to my partner using https post method.It is possible. FYI, by default HTTPS uses post method.
Is there any example for my scenario in oracle b2b?Not exact sample is available but yes, similar samples are available here -
http://www.oracle.com/technology/sample_code/products/b2b/index.html
I would suggest you to go through below tutorial to have better understanding -
http://www.oracle.com/technology/products/soa/b2b/collateral/B2B_TU003_ebxml.pdf
Namespace is not an issue. It's upto you whether you like to keep it or not. From XML technology point of view, it is always recommended to have a namespace to bind each and every node with it, but I have seem cases where people don't use them.
Regards,
Anuj -
Invokation of Oracle J2eeWeb Services using HTTP POST
I have created Oracle J2ee web service from a Java Class in Oracle Jdeveoper 10g. I want to invoke web methods in the web service using HTTP POST method. Currently, these web methods can be invoked using HTTP GET method which is the default option. Please suggest any solution for this.
byeVivek,
If you want to make a call to Web Services from .NET, you have to generate a client proxy in your language of choice: C#, VB.NET, J#, ...
There are two ways of doing so. a) from the command line using a tool named WSDL.EXE. b) from Visual Studio 2003 using the 'Add Web Reference' command.
In either case, you will have to point to the WSDL of your service to generate the client proxy. The URL for the WSDL is the same as the URL for the service, with the ?WSDL parameter.
Hope this helps,
Eric -
How to send te XML data using HTTPS post call & receiving response in ML
ur present design does the HTTP post for XML data using PL/SQL stored procedure call to a Java program embedded in Oracle database as Oracle Java Stored procedure. The limitation with this is that we are able to do HTTP post; but with HTTPS post; we are not able to achieve because of certificates are not installed on Oracle database.
we fiond that the certificates need to be installed on Oracle apps server; not on database server. As we have to go ultimately with HTTPS post in Production environment; we are planning to shift this part of program(sending XML through HTTPS post call & receiving response in middle layer-Apps server in this case).
how i can do this plz give some solutionIf you can make the source app to an HTTP Post to the Oracle XML DB repository, and POST contains a schema based XML document you can use a trigger on the default table to validate the XML that is posted. The return message would need to be managed using a database trigger. You could raise an HTTP error which the source App would trap....
-
JAX-WS -- Force a wsimport generated ws client to use http POST method
I've used wsimport to generate a JAX-WS client for a wsdl and xsd bindings that were provided to me.
The basic implementation goes something like this.
URL serviceUrl = ...url to the live web service's wsdl (this will change often and needs to be data driven)
QName qname = new QName("thenamespace", "MyService")
MyService myService = new MyService(serviceUrl, qname);
At this point a http GET request is sent to the server which promptly spits back a "405: method not allowed" because it is only configured to accept the http POST method.
Unfortunately i cannot change this behavior and need a way to get the web service client to generate http POST requests.
Setting the following seemed to have no effect.
System.setProperty("javax.xml.ws.http.request.method", "POST");
Thanks!so, keep the wsdl as a local resource and use a url for the local resource. then the service will not request the remote wsdl.
-
Applicatio​n using Http Post... getting error response
Im from Ecuador, and me and other 4 people from the same country are getting this error response when a native java application is trying to make a http post to mydomain.com
The requested URL could not be retrieved:
While trying to process the request:
POST /somedir/more?var1=abc&var2=xyz& HTTP/1.1
Expect: 100-continue
Host: mydomain.com
Content-Length: 40
Content-Type: text/plain; charset=utf-8
Accept: */*
Connection: close
Invalid request. Some aspect of the HTTP Request is nivalid. Possible problems:
Missing or unknwon request method
Missing URL
Missing HTTP Identifier (HTTP/1.0)
Request is too large
Content-Length missing for POST or PUT request
Generated by Blackberry.Internet.Browsing.Service (squd/2.7.STABLE6)
This issue is only happening in my country (Ecuador). I have some friends in Argentina and they have no problems at all. What are the posible causes for this problem?
Message Edited by andufo on 07-09-2009 08:43 PMHi again,
im attaching all the info you request:
What does the program actually do?
Social network (because of the TOS of this forum im not allowed to post project names or urls)
What is it trying to send when you submit a request?
What url is it posting the information to?
Im attaching all this at the end of the post.
Is it the 'exact' same application that works in other countries?
Yeap, the exact same one...
Is it supposed to be useing the Internet Browser?
No, it is a native app. The Browser is not used at all.
Are you on a BlackBerry Enterprise Server?
Im on BIS, all the users use BIS.
Technical details:
1) The app makes an Http Connection (POST) to:
http://mydomain.com/api/call?param1=abc¶m2=xyz
2) This is the Http connection configuration:
httpConnection = (HttpConnection) Connector.open(url);
HttpConnection.POST;
("Content-Type", "text/plain; charset=utf-8");
("Host", 'mydomain.com');
("Content-Length", 100); //depends on sent data
("User-Agent", 'BlackBerry8300... etc');
("Expect", "100-continue");
3) On every country it works fine... on my country i get this error:
The requested URL could not be retrieved while trying to process the request:
POST /app/llamada?param1=abc¶m2=xyz& HTTP/1.1
- Expect: 100-continue
- Host: mydomain.com
- Content-Length: 100
- Content-Type: text/plain; charset=utf-8
- Accept: */*
- Connection: close
Invalid request. Some aspect of the HTTP Request is invalid. Possible problems:
- Missing or unknwon request method
- Missing URL
- Missing HTTP Identifier (HTTP/1.0)
- Request is too large
- Content-Length missing for POST or PUT request
Generated by Blackberry.Internet.Browsing.Service (squid/2.7.STABLE6) -
Is it possible to call a SOAP webservice using HTTP POST adapter
Hello Experts,
Is it possible to call a webservice using a HTTP adapter with POST method? If yes, how?
Regards,
DipteeNo this will not work since you have additional SOAP information (i.e. SOAP envelope, security information) in addition to the payload. If you need a simple HTTP-Post for example, then you don't need SOAP, you can use the more simple http protocol without the additional features of SOAP.
Also refer to this link for differences: Difference b/w SOAP and HTTP -
Interesting! JDeveloper deploy to remote server uses HTTP POST
The documentation clearly mentions that the bpelc ant task only deploys to local server using a file copy. I was wondering how JDeveloper is able to deploy to remote servers. Turns out is just does a HTTP POST of multipart/form-data to upload the BPEL suitcase jar file. Given below is the trace of the POST. Of course, it is all proprietary for now and is not documented. Maybe Oracle can wrap this as a custom ant task?
--Nizam
POST /integration/services/deploy/deployProcess.jsp HTTP/1.1
Host: bpel.server.com:9700
Connection: Keep-Alive, TE
TE: trailers, deflate, gzip, compress
User-Agent: RPT-HTTPClient/0.3-3
BPELDomain: default
BPELPassword: bpel
Accept-Language: en
Accept-Encoding: gzip, x-gzip, compress, x-compress
Content-type: multipart/form-data;boundary=*****
Content-length: 10690
Content-Disposition: form-data; name="upload";BPELDomain="default"; filename="E:\work\MyBPELWS\HelloWorld\output\bpel_HelloWorld_1.0.jar"
PK..
........3................META-INF/....PK..
........3...#............META-INF/MANIFEST.MFManifest-Version: 1.0
Process-GUID: MD5{9d2c0a4b850da042548cc6bdf1c04d68}
Created-By: 1.4.2_06 (Sun Microsystems Inc.)
Process-Id: HelloWorld
Timestamp: 1124360790893
Process-Class: BPEL
Implementation-Package: bpel.p0
Revision-Tag: 1.0
PK..
........3................BPEL-INF/PK..
........3.\.Z............bpel.xml<?xml version="1.0" encoding="UTF-8"?>
<BPELSuitcase guid="MD5{9d2c0a4b850da042548cc6bdf1c04d68}" timestamp="1124360790893" revision="1.0">
<BPELProcess process-impl="bpel.p0.BPEL_BIN" src="HelloWorld.bpel" id="HelloWorld">
<partnerLinkBindings>
<partnerLinkBinding name="client">
<property name="wsdlLocation">HelloWorld.wsdl</property>
</partnerLinkBinding>
</partnerLinkBindings>
</BPELProcess>
</BPELSuitcase>
PK..
........3[...5...5.......build.xml<?xml version="1.0" ?>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Run cxant on this file to build, package and deploy the
HelloWorld BPEL process
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<project name="HelloWorld" default="main" basedir=".">
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name of the domain the generated BPEL suitcase will be deployed to
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<property name="deploy" value="default" />
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What version number should be used to tag the generated BPEL archive?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<property name="rev" value="1.0" />
<target name="main">
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
the bpelc task compiles and package BPEL processes into versioned BPEL
archives (bpel_...jar). See the "Programming BPEL" guide for more
information on the options of this task.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<bpelc input="${basedir}/bpel.xml" rev="${rev}" deploy="${deploy}" />
</target>
</project>PK..
........3,.JaZ...Z.......graphics.xml<?xml version = '1.0' encoding = 'UTF-8'?>
<graphics>
<partnerlink_locations>
<partnerlink name="client" x="15" y="215" side="left"/>
</partnerlink_locations>
<diagram popupeditor="false" centerzoom="true" validateonload="true" confirmbeforedelete="true" SELECTED_PARTNERLINK_COLOR="0,0,153" SWIMLANE_BACKGROUND="255,255,225" SWIMLANE_DIVIDER_BACKGROUND="236,233,216" GRAPH_BACKGROUND="255,255,255" SELECTED_BORDER_BACKGROUND="204,255,204" CONNECTED_PARTNERLINK_COLOR="204,204,255" CONNECTABLE_PARTNERLINK_COLOR="0,0,255" UNCONNECTED_PARTNERLINK_COLOR="192,192,192"/>
</graphics>
PK..
........3O ..............HelloService.wsdl<definitions
targetNamespace="http://tempuri.org/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:s0="http://tempuri.org/"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<import namespace="http://tempuri.org/" location="http://localhost/HelloEnglish/Service1.asmx?WSDL"/>
<plnk:partnerLinkType name="Service1Soap_PL">
<plnk:role name="Service1Soap_Role">
<plnk:portType name="s0:Service1Soap"/>
</plnk:role>
</plnk:partnerLinkType>
</definitions>
PK..
........3.....
......HelloWorld.bpel<!--
// Oracle JDeveloper BPEL Designer
// Created: Fri Aug 05 00:05:52 IST 2005
// Author: nizam
// Purpose: Synchronous BPEL Process
-->
<process name="HelloWorld" targetNamespace="http://xmlns.oracle.com/HelloWorld" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:client="http://xmlns.oracle.com/HelloWorld" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
<partnerLinks><!--
The 'client' role represents the requester of this service. It is
used for callback. The location and correlation information associated
with the client role are automatically set using WS-Addressing.
-->
<partnerLink name="client" partnerLinkType="client:HelloWorld" myRole="HelloWorldProvider"/>
</partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
<variables><!-- Reference to the message passed as input during initiation -->
<variable name="inputVariable" messageType="client:HelloWorldRequestMessage"/><!--
Reference to the message that will be returned to the requester
-->
<variable name="outputVariable" messageType="client:HelloWorldResponseMessage"/>
</variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
<sequence name="main"><!-- Receive input from requestor.
Note: This maps to operation defined in HelloWorld.wsdl
-->
<receive name="receiveInput" partnerLink="client" portType="client:HelloWorld" operation="process" variable="inputVariable" createInstance="yes"/><!-- Generate reply to synchronous request -->
<assign name="Assign_1">
<copy>
<from expression="concat("v1.1: Hello ", bpws:getVariableData('inputVariable','payload','/client:HelloWorldProcessRequest/client:input'))"/>
<to variable="outputVariable" part="payload" query="/client:HelloWorldProcessResponse/client:result"/>
</copy>
</assign>
<reply name="replyOutput" partnerLink="client" portType="client:HelloWorld" operation="process" variable="outputVariable"/>
</sequence>
</process>PK..
........3.....
......HelloWorld.wsdl<?xml version="1.0" encoding="UTF-8"?>
<definitions name="HelloWorld"
targetNamespace="http://xmlns.oracle.com/HelloWorld"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:client="http://xmlns.oracle.com/HelloWorld"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
.<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.TYPE DEFINITION - List of services participating in this BPEL process
.The default output of the BPEL designer uses strings as input and
.output to the BPEL Process. But you can define or import any XML
.Schema type and us them as part of the message types.
.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
.<types>
..<schema attributeFormDefault="qualified"
...elementFormDefault="qualified"
...targetNamespace="http://xmlns.oracle.com/HelloWorld"
...xmlns="http://www.w3.org/2001/XMLSchema">
...<element name="HelloWorldProcessRequest">
....<complexType>
.....<sequence>
......<element name="input" type="string"/>
.....</sequence>
....</complexType>
...</element>
...<element name="HelloWorldProcessResponse">
....<complexType>
.....<sequence>
......<element name="result" type="string"/>
.....</sequence>
....</complexType>
...</element>
..</schema>
.</types>
.<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.MESSAGE TYPE DEFINITION - Definition of the message types used as
.part of the port type defintions
.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
.<message name="HelloWorldRequestMessage">
..<part name="payload" element="client:HelloWorldProcessRequest"/>
.</message>
.<message name="HelloWorldResponseMessage">
..<part name="payload" element="client:HelloWorldProcessResponse"/>
.</message>
.<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.PORT TYPE DEFINITION - A port type groups a set of operations into
.a logical service unit.
.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
.<!-- portType implemented by the HelloWorld BPEL process -->
.<portType name="HelloWorld">
..<operation name="process">
...<input message="client:HelloWorldRequestMessage" />
...<output message="client:HelloWorldResponseMessage"/>
..</operation>
.</portType>
.<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.PARTNER LINK TYPE DEFINITION
.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
.<plnk:partnerLinkType name="HelloWorld">
..<plnk:role name="HelloWorldProvider">
...<plnk:portType name="client:HelloWorld"/>
..</plnk:role>
.</plnk:partnerLinkType>
</definitions>
PK..
........3..............................META-INF/....PK..
........3...#......................+...META-INF/MANIFEST.MFPK..
........3..........................T...BPEL-INF/PK..
........3.\.Z......................{...bpel.xmlPK..
........3[...5...5.................i...build.xmlPK..
........3,.JaZ...Z.....................graphics.xmlPK..
........3O ........................I...HelloService.wsdlPK..
........3.....
....................HelloWorld.bpelPK..
........3.....
....................HelloWorld.wsdlPK...............&....
*****If anyone is interested, I've created a custom ant taks to leverage this HTTP post for deploying the BPEL suitcase jar to remote servers. We didn't want to use FTP, as we'd have to change permissions on the files.
To do this, I've leveraged the oracle.tip.pc.infra.deploy.DeployRemote class. You just have to pass it the path the the jar, server url (http://host:port/deploy/deployProcess.jsp), domain, and password.
This seems to work fine for us.
-Mike -
How to communicate with a remote application that uses http post to request connection
Ok, I will try to make this simple as to avoid any
confusion.
I am trying to receive connection requests from remote applications installed on user pc's.
The application uses POST method to send the request to connect to my database, and if required update some tables.
The application is not a webpage. I have no access to the internal workings of the application nor do I have any specific information about how it sends its POST. I am sure of the following:
The app will POST to my .cfm page
"IsConnectionAllowed" = "yes"
This is asking my cfm page if its ok to connect. I would need to use a <cfif> to verify the the first part of the POST is in fact
"IsConnectionAllowed" = "yes"
If this returns true, (the app also uses to POST to pass "username" and "password") my .cfm page will then perform a query and check the username and password against the database. If a matching record is found, the application expects my page to reply with
"#Answer# OK- connected;"
Once the answer is given the application will then respond with data to insert or update my tables.
Now, I know how to do the queries and update tables etc, but I have never received data from an application before.
I tried using the <cfform> tag with a mehod of GET, and then trying to send my reply with <cfoutput>, but that didn't work. The application doesn't give any feedback or error messages. It either connects or not.
I also tried the <cfhttp> tag, but that didnt work either. I am not very experinced with coldfusion. I used it years ago and am just getting back into it.
I am sure this is a pretty easy thing to do, but my methods arent working.
Using the above information, can somone please show me how I would accomplish this communication? I can then use the same method to retrieve the data for my table updates and queries.
Here is a sample of what I have already tried:
<cfform method="get">
<cfif>
"IsConnectionAllowed" = "yes"
<!-- I need to query a username or password. But for testing I will just give the OK to connect -->
<cfoutput>#Answer# Ok - connected;</cfoutput>
<cfelse>
<!-- When I query username and password, if the query returns no records I deny the connection -->
<cfoutput>#Answer# Not connected;</cfoutput>
</cfif>
</cfform>
BTW, I have examples of this being done using .php and .asp. I need to do this using .cfm. I can post the either the .php or.asp code if it will be helpful in converting the function into a .cfm page.Thanks Fernis.
That code allowed me to connect!
I have an error on the remote application, but I think thats due to the fact that I commented out the database connection and query strings. As I am mostly concerned with connection at this point, I just wanted to test that my cfm page will recognise the POST request and send the right answer, In this case
##Answer## Ok - connected;
That worked perfectly and the application received the ok to connect.
I can now use your code as a base to carry on with my database connection and update query.
I can't thank you enough. I wouldnt have figured that out in a million years of trial and error.
I knew it was simple though. I was over thinking it.
I do have one last question though... In the code you presented you have
<cfif structKeyExists(Form,"isConnectionAllowed") AND form.isConnectionAllowed EQ "yes">
Can you you explain this structKeyExists(Form,"isConnectionAllowed")
I have never seen this before. Why the Form followed by a comma? I am guessing you are asking if there is an element in the POST called "isConnectionAllowed". Is that correct? If so, do I not need to do that for each POST'ed element such as username, password, and each of the other fields that will be updated in the session? -
SRM-MDM-Catalog and XI using HTTP
I need to do a integration between SRM 5 and SRM-MDM-Catalog using XI.
I imported the SRM-MDM-Catalog packages into the XI and I saw that all connections with MDM are using FTP in the comunnication channel template.
Is it possible to do connections for MDM using http or soap?As far as I know using Files is how XI interacts with MDM. All scenarios I have seen on SDN have been with File adapter being used on MDM 's side.
Maybe there is a way , am watching this thread as well.
Regards
Bhavesh
Maybe you are looking for
-
After experiencing some issues with 2.6.38 and my Intel video card (external monitor support). I decided to go back to 2.6.37 for the time being. I went into my /var/cache/pacman/pkg and typed in: pacman -U kernel26-2.6.37-6-x86_64.pkg.tar.xz kernel2
-
Itunes error message for iphone
When I try to sync my iphone itunes is telling me i don't have the required disk. Any way I can get the required disk? What is it?
-
Importing photos to Pages ( or Iweb for that Matter )
Just installed Ilife 08 and Iphoto seems to be working fine in and of itself but I am having trouble accessing my Iphoto Library from Pages ( and Iweb ). If I have an open Pages document and I try to import a picture to use in that document, the Ipho
-
I have been waiting on Chat Support for over 30 minutes!!!!!!
-
FTTP coming in December but what are the packages?
Hi all, My exchange is down for FTTP in Dec this year which I guess means I can get access to BT Infinty option 3 and 4. Unfortunately on the BT website you can't see those options unless you can already get FTTP! Can anyone enlighten me as to what t