Consuming Flex & SOAP WebService
I am attempting to consume a SOAP webservice and I am having trouble.
How would you suggest that I consume a web service using the following xml? Also, if you could provide a simple example that would be great!
Thanks.
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetViewResultsResponse xmlns="http://www.servicesource/datamanager/">
<GetViewResultsResult>
<PrimaryTableName>string</PrimaryTableName>
<IsSystemView>boolean</IsSystemView>
<DataTables>
<NHRCViewResultDataTable>
<TableOrViewID>guid</TableOrViewID>
<TableName>string</TableName>
<Columns xsi:nil="true" />
<Rows xsi:nil="true" />
</NHRCViewResultDataTable>
<NHRCViewResultDataTable>
<TableOrViewID>guid</TableOrViewID>
<TableName>string</TableName>
<Columns xsi:nil="true" />
<Rows xsi:nil="true" />
</NHRCViewResultDataTable>
</DataTables>
<Queries>
<NHRCQueryDefinition>
<NumberRowsToGet>int</NumberRowsToGet>
<FirstRowToGet>int</FirstRowToGet>
<MainTable xsi:nil="true" />
<Tables xsi:nil="true" />
<WhereClause xsi:nil="true" />
<StructureOnly>boolean</StructureOnly>
<ColumnListPrefix>string</ColumnListPrefix>
</NHRCQueryDefinition>
<NHRCQueryDefinition>
<NumberRowsToGet>int</NumberRowsToGet>
<FirstRowToGet>int</FirstRowToGet>
<MainTable xsi:nil="true" />
<Tables xsi:nil="true" />
<WhereClause xsi:nil="true" />
<StructureOnly>boolean</StructureOnly>
<ColumnListPrefix>string</ColumnListPrefix>
</NHRCQueryDefinition>
</Queries>
<ChangeLogTable>
<TableOrViewID>guid</TableOrViewID>
<TableName>string</TableName>
<Columns>
<NHRCViewResultColumn xsi:nil="true" />
<NHRCViewResultColumn xsi:nil="true" />
</Columns>
<Rows>
<NHRCViewResultRow xsi:nil="true" />
<NHRCViewResultRow xsi:nil="true" />
</Rows>
</ChangeLogTable>
<ViewTitle>string</ViewTitle>
<ViewID>guid</ViewID>
<DataVersion>dateTime</DataVersion>
<CompareVersion>dateTime</CompareVersion>
<LookupLists>
<NHRCViewResultLookupList>
<LookupTableID>guid</LookupTableID>
<ColumnDetails xsi:nil="true" />
<IsViewResults>boolean</IsViewResults>
<UsedAsSubtable>boolean</UsedAsSubtable>
<IsChangeTrackingTable>boolean</IsChangeTrackingTable>
<CanAcceptChanges>boolean</CanAcceptChanges>
<TableName>string</TableName>
</NHRCViewResultLookupList>
<NHRCViewResultLookupList>
<LookupTableID>guid</LookupTableID>
<ColumnDetails xsi:nil="true" />
<IsViewResults>boolean</IsViewResults>
<UsedAsSubtable>boolean</UsedAsSubtable>
<IsChangeTrackingTable>boolean</IsChangeTrackingTable>
<CanAcceptChanges>boolean</CanAcceptChanges>
<TableName>string</TableName>
</NHRCViewResultLookupList>
</LookupLists>
<ColumnDetails>
<NHRCViewResultColumnDetails>
<LookupTableID>guid</LookupTableID>
<LookupListSortColumn>string</LookupListSortColumn>
<IsPartOfDuplicateCheck>boolean</IsPartOfDuplicateCheck>
<PrimaryFilterOrder>int</PrimaryFilterOrder>
<IsPartOfErrorDefinition>boolean</IsPartOfErrorDefinition>
<KeyFieldName>string</KeyFieldName>
<ValueFieldNames xsi:nil="true" />
<DisplayFieldCaption>string</DisplayFieldCaption>
<ConsolidatedDisplayFieldName>string</ConsolidatedDisplayFieldName>
<ConsolidatedDisplayFieldExpression>string</ConsolidatedDisplayFieldExpression>
<OriginalFieldName>string</OriginalFieldName>
<ColumnWidth>int</ColumnWidth>
<DataType>string</DataType>
<MaxLength>int</MaxLength>
<AllowEmpty>boolean</AllowEmpty>
<Visible>boolean</Visible>
<DisplayOrder>int</DisplayOrder>
<FieldReadOnly>boolean</FieldReadOnly>
<IsSubtableLink>boolean</IsSubtableLink>
<IsLookupFromView>boolean</IsLookupFromView>
<IsSingleValueLookupTable>boolean</IsSingleValueLookupTable>
<IsLookupOfLookup>boolean</IsLookupOfLookup>
<LookupCriteria>string</LookupCriteria>
<MinValue>double</MinValue>
<MaxValue>double</MaxValue>
<ValidationRegex>string</ValidationRegex>
</NHRCViewResultColumnDetails>
<NHRCViewResultColumnDetails>
<LookupTableID>guid</LookupTableID>
<LookupListSortColumn>string</LookupListSortColumn>
<IsPartOfDuplicateCheck>boolean</IsPartOfDuplicateCheck>
<PrimaryFilterOrder>int</PrimaryFilterOrder>
<IsPartOfErrorDefinition>boolean</IsPartOfErrorDefinition>
<KeyFieldName>string</KeyFieldName>
<ValueFieldNames xsi:nil="true" />
<DisplayFieldCaption>string</DisplayFieldCaption>
<ConsolidatedDisplayFieldName>string</ConsolidatedDisplayFieldName>
<ConsolidatedDisplayFieldExpression>string</ConsolidatedDisplayFieldExpression>
<OriginalFieldName>string</OriginalFieldName>
<ColumnWidth>int</ColumnWidth>
<DataType>string</DataType>
<MaxLength>int</MaxLength>
<AllowEmpty>boolean</AllowEmpty>
<Visible>boolean</Visible>
<DisplayOrder>int</DisplayOrder>
<FieldReadOnly>boolean</FieldReadOnly>
<IsSubtableLink>boolean</IsSubtableLink>
<IsLookupFromView>boolean</IsLookupFromView>
<IsSingleValueLookupTable>boolean</IsSingleValueLookupTable>
<IsLookupOfLookup>boolean</IsLookupOfLookup>
<LookupCriteria>string</LookupCriteria>
<MinValue>double</MinValue>
<MaxValue>double</MaxValue>
<ValidationRegex>string</ValidationRegex>
</NHRCViewResultColumnDetails>
</ColumnDetails>
<ExpressionColumns>
<NHRCViewResultExpressionColumn>
<TableID>guid</TableID>
<TableName>string</TableName>
<ColumnName>string</ColumnName>
<Expression>string</Expression>
<Order>int</Order>
</NHRCViewResultExpressionColumn>
<NHRCViewResultExpressionColumn>
<TableID>guid</TableID>
<TableName>string</TableName>
<ColumnName>string</ColumnName>
<Expression>string</Expression>
<Order>int</Order>
</NHRCViewResultExpressionColumn>
</ExpressionColumns>
<Relations>
<NHRCViewResultRelation>
<ParentKey>string</ParentKey>
<ChildKey>string</ChildKey>
<RelationName>string</RelationName>
<ParentTableName>string</ParentTableName>
<ChildTableName>string</ChildTableName>
<ParentTableID>guid</ParentTableID>
<ChildTableID>guid</ChildTableID>
<DependsOnExpressionColumn>boolean</DependsOnExpressionColumn>
</NHRCViewResultRelation>
<NHRCViewResultRelation>
<ParentKey>string</ParentKey>
<ChildKey>string</ChildKey>
<RelationName>string</RelationName>
<ParentTableName>string</ParentTableName>
<ChildTableName>string</ChildTableName>
<ParentTableID>guid</ParentTableID>
<ChildTableID>guid</ChildTableID>
<DependsOnExpressionColumn>boolean</DependsOnExpressionColumn>
</NHRCViewResultRelation>
</Relations>
</GetViewResultsResult>
</GetViewResultsResponse>
</soap:Body>
</soap:Envelope>
Turns out I needed to set null values for all the other arguments in the definition that I wasn't using. After that Flex was translating it properly.
Similar Messages
-
Have a requirement to consume a SOAP webservice (wsdl file) using apex
Hi,
I am using Application Express 4.2.2.00.11.
My requirement is to consume a soap web service (wsdl file).
I am pasting the wsdl fille.
<wsdl:message name="FulfillOrderResponseRequestMessage">
<wsdl:part name="payload" element="ffebm:ProcessFulfillmentOrderNotificationEBM"/>
</wsdl:message>
<wsdl:message name="FulfillOrderResponseResponseMessage">
<wsdl:part name="payload" element="ffebm:ProcessFulfillmentOrderNotificationResponseEBM"/>
</wsdl:message>
<wsdl:portType name="FulfillOrderResponse">
<wsdl:operation name="process">
<wsdl:input message="client:FulfillOrderResponseRequestMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:portType name="FulfillOrderResponseCallback">
<wsdl:operation name="processResponse">
<wsdl:input message="client:FulfillOrderResponseResponseMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="FulfillOrderResponseBinding" type="client:FulfillOrderResponse">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsp:PolicyReference URI="#wss11_saml_or_username_token_with_message_protection_service_policy" wsdl:required="false"/>
<wsp:PolicyReference URI="#wsaddr_policy" wsdl:required="false"/><wsdl:operation name="process">
and the xml file looks like this
<FulfillOrderResponseRequestMessage>
<part name="payload">
<coreforderrocessFulfillmentOrderNotificationEBM>
<corecom:EBMHeader>
<corecom:EBMID>2d383135353332303931343330383630</corecom:EBMID>
<corecom:EBMName>{_http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/FulfillmentOrder/V1}ProcessFulfillmentOrderNotificationEBM</corecom:EBMName>
<corecom:EBOName>{_http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/FulfillmentOrder/V1}ProcessFulfillmentOrderNotificationEBO</corecom:EBOName>
<corecom:CreationDateTime>2013-12-27T13:29:04.530+05:30</corecom:CreationDateTime>
<corecom:VerbCode>Update</corecom:VerbCode>
<corecom:MessageProcessingInstruction>
<corecom:EnvironmentCode>PRODUCTION</corecom:EnvironmentCode>
</corecom:MessageProcessingInstruction>
<corecomender>
<corecom:ID schemeAgencyID="GPR">EBSVIS</corecom:ID>
<corecomenderMessageID/>
<corecom:CallingServiceName>{_http://xmlns.oracle.com/ApplicationBusinessFlow/OrderToCash/ProcessFulfillmentOrderNotificationEbizToFusionDOOABF/V1}ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</corecom:CallingServiceName>
<corecom:WSAddress>
<ns1:ReplyTo>
<ns1:Address/>
<ns1ortType>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1ortType>
<ns1erviceName>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1erviceName>
</ns1:ReplyTo>
<ns1:FaultTo>
<ns1:Address/>
<ns1ortType>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1ortType>
<ns1erviceName>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1erviceName>
</ns1:FaultTo>
</corecom:WSAddress>
</corecomender>
<corecom:Target>
<corecom:ID schemeAgencyID="GPR">GPR</corecom:ID>
</corecom:Target>
<corecom:BusinessScope/>
<corecom:EBMTracking>
<corecomequenceNumber>1</corecomequenceNumber>
<corecom:ExecutionUnitName>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</corecom:ExecutionUnitName>
<corecom:ImplementationCode>BPEL</corecom:ImplementationCode>
<corecom:ActivityDateTime>2013-12-27T13:29:04.531+05:30</corecom:ActivityDateTime>
</corecom:EBMTracking>
<xacml-context:Request/>
</corecom:EBMHeader>
<coreforderataArea>
<corecomrocess operation="ProcessFulfillmentOrderNotification"/>
<coreforderrocessFulfillmentOrderNotification>
<corecom:Identification>
<corecom:BusinessComponentID/>
<corecom:ID schemeID="ORDER_NUMBER" schemeAgencyID="EBSVIS">66498</corecom:ID>
<corecom:ApplicationObjectKey>
<corecom:ID schemeID="HEADER_ID" schemeAgencyID="EBSVIS">228338</corecom:ID>
</corecom:ApplicationObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeAgencyID="GPR">300000030196926</corecom:ID>
</corecom:AlternateObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeID="ExternalInteractionKey">228338</corecom:ID>
</corecom:AlternateObjectKey>
</corecom:Identification>
<coreforder:CurrencyCode listAgencyID="EBSVIS">USD</coreforder:CurrencyCode>
<coreforder:TypeCode listAgencyID="GPR">ORDER</coreforder:TypeCode>
<corecom:BusinessUnitReference>
<corecom:BusinessUnitIdentification>
<corecom:BusinessComponentID/>
<corecom:ApplicationObjectKey>
<corecom:ID schemeID="ORG_ID" schemeAgencyID="EBSVIS">204</corecom:ID>
</corecom:ApplicationObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeAgencyID="GPR">300000028235904</corecom:ID>
</corecom:AlternateObjectKey>
</corecom:BusinessUnitIdentification>
</corecom:BusinessUnitReference>
<coreforder:FulfillmentOrderLine actionCode="UPDATE">
<corecom:Identification>
<corecom:BusinessComponentID/>
<corecom:ID schemeID="LINE_NUMBER" schemeAgencyID="EBSVIS">1</corecom:ID>
<corecom:ApplicationObjectKey>
<corecom:ID schemeID="LINE_ID" schemeAgencyID="EBSVIS">419300</corecom:ID>
</corecom:ApplicationObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeAgencyID="GPR">300000030196928</corecom:ID>
</corecom:AlternateObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeID="ExternalInteractionKey">419300</corecom:ID>
</corecom:AlternateObjectKey>
</corecom:Identification>
<coreforderrderQuantity>2</coreforderrderQuantity>
<coreforder:CurrencyCode listAgencyID="EBSVIS">USD</coreforder:CurrencyCode>
<corecomtatus>
<corecom:Code listAgencyID="GPR">AWAIT_SHIP</corecom:Code>
</corecomtatus>
<corecom:ItemReference>
<corecom:ItemIdentification>
<corecom:BusinessComponentID/>
<corecom:ApplicationObjectKey>
<corecom:ID schemeAgencyID="EBSVIS">225</corecom:ID>
</corecom:ApplicationObjectKey>
</corecom:ItemIdentification>
<corecom:TypeCode listAgencyID="GPR">4</corecom:TypeCode>
</corecom:ItemReference>
<coreforder:FulfillmentOrderSchedule actionCode="UPDATE">
<corecom:Identification>
<corecom:BusinessComponentID/>
<corecom:ApplicationObjectKey>
<corecom:ID schemeID="LINE_ID" schemeAgencyID="EBSVIS">419300</corecom:ID>
</corecom:ApplicationObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeID="FulfillLineId" schemeAgencyID="GPR">300000030196928</corecom:ID>
</corecom:AlternateObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeID="ExternalInteractionKey">419300</corecom:ID>
</corecom:AlternateObjectKey>
</corecom:Identification>
<coreforder:FreightTermCode listAgencyID="EBSVIS">Paid</coreforder:FreightTermCode>
<coreforderrderQuantity>2</coreforderrderQuantity>
<coreforderromisedShipDateTime>2013-12-27T19:30:00.000+00:00</coreforderromisedShipDateTime>
<corefordercheduledShipDateTime>2013-12-27T19:30:00.000+00:00</corefordercheduledShipDateTime>
<corecomtatus>
<corecom:Code listAgencyID="GPR">AWAIT_SHIP</corecom:Code>
</corecomtatus>
<corecom:UnitListPrice>
<corecom:Amount>100</corecom:Amount>
</corecom:UnitListPrice>
<corecom:UnitSalePrice>
<corecom:Amount>100</corecom:Amount>
</corecom:UnitSalePrice>
<corecom:CarrierPartyReference>
<corecomartyIdentification>
<corecom:ApplicationObjectKey>
<corecom:ID schemeAgencyID="EBSVIS"/>
</corecom:ApplicationObjectKey>
</corecomartyIdentification>
</corecom:CarrierPartyReference>
<coreforder:FulfillmentOrderScheduleTax>
<corecom:Tax>
<corecom:Amount>0</corecom:Amount>
</corecom:Tax>
</coreforder:FulfillmentOrderScheduleTax>
<coreforder:FulfillmentOrderItem>
<corecom:ItemReference>
<corecom:ItemIdentification>
<corecom:BusinessComponentID/>
<corecom:ApplicationObjectKey>
<corecom:ID schemeAgencyID="EBSVIS">225</corecom:ID>
</corecom:ApplicationObjectKey>
</corecom:ItemIdentification>
<corecom:TypeCode listAgencyID="GPR">4</corecom:TypeCode>
</corecom:ItemReference>
</coreforder:FulfillmentOrderItem>
</coreforder:FulfillmentOrderSchedule>
</coreforder:FulfillmentOrderLine>
</coreforderrocessFulfillmentOrderNotification>
</coreforderataArea>
</coreforderrocessFulfillmentOrderNotificationEBM>
</part>
</FulfillOrderResponseRequestMessage>
I need to pass few of the above parameters from database using apex.
Any help will be very thankfull.
Please if anything more is required to be provided from my side
Thanks
NileshI nee to pass values to few of the above parameters.
Please inform if anything more is required from my end. -
DidReceiveData not getting called for consuming a SOAP webservice
I am trying to access a webservice in iphone. didReceiveResponse connectionDidFinishLoading is getting called however didReceiveData is not getting called. I checked NSHTTPURLResponse allHeaderFields where Content-length is 0 and statusCode is 400. I am not getting why I am getting this HTTP status code. Can someone please help me in finding this error. Here is my code:
- (IBAction)buttonClickedid)sender {
NSString *soapMsg =
[NSString stringWithFormat:
@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xlmns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
"<soap:Body>\n"
"<GetAllCarsJson xmlns=\"http://cscserver2.carrollu.edu/tshah2/\">\n"
"</GetAllCarsJson>\n"
"</soap:Body>\n"
"</soap:Envelope>"];
//---print it to the Debugger Console for verification---
//NSLog(@"%@",soapMsg);
NSURL *url = [NSURL URLWithString:@"http://cscserver2.carrollu.edu/tshah2/CarService.asmx"];
NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:url];
//---set the headers---
NSString *msgLength = [NSString stringWithFormat:@"%d",[soapMsg length]];
[req addValue:@"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
[req addValue:@"http://cscserver2.carrollu.edu/tshah2/GetAllCarsJson" forHTTPHeaderField:@"SOAPAction"];
[req addValue:msgLength forHTTPHeaderField:@"Content-Length"];
//---set the HTTP method and body---
[req setHTTPMethod:@"POST"];
[req setHTTPBody: [soapMsg dataUsingEncoding:NSUTF8StringEncoding]];
//[activityIndicator startAnimating];
conn = [[NSURLConnection alloc] initWithRequest:req delegate:self];
[conn start];
NSLog(@"Connection = %@", conn);
if (conn)
//webData = [[NSMutableData data] ];
webData = [[NSMutableData alloc] initWithCapacity:2048];
//[[NSMutableData data] retainArguments];
- (void) connection NSURLConnection *) connection didReceiveResponse NSURLResponse *)response
NSLog(@"soapMsg1: %d", [webData length]);
//webData = [[NSMutableData alloc] initWith:
[webData setLength:0];
- (void) connection NSURLConnection *) connection didReceiveData NSData *)data
NSLog(@"DONE1111");
[webData appendData:data];
//NSLog(webData);
- (void) connection NSURLConnection *) connection didFailWithError NSError *)error
NSLog(@"ConnectionFailed");
//[webData release];
//[connection release];
- (void) connectionDidFinishLoading NSURLConnection *) connection
NSLog(@"DONE. Received Bytes: %d", [webData length]);
NSString *theXML = [[NSString alloc] initWithBytes:[webData mutableBytes] length: [webData length] encoding:NSUTF8StringEncoding];
//shows the XML
NSLog(theXML);
//[theXML release];
//[activityIndicator stopAnimating];
//[connection release];
connection = nil;
webData =nil;Hi,
If you can see the field in UI and still get_ method is not being triggered then try to regenerate these methods. If it still doesn't work then please look for SAP notes or raise an OSS.
There should be some note for the issue you faced.
please refer:
Help Needed immediately - AET getter setter methods not getting triggered
Regards,
BJ -
How to consume SOAP webservice in to my java/j2ee application
Hi,
I am a java developer. how to i consume SAP soap webservice in to my java application.
scenario : 1
We are migrating 2 specific java modules in to SAP System.But master details are stored in to my java application database.Those details are require
to SAP application. So that they provide me WSDL file, How to i consume soap webservice in to my java application and also, How to i provide master data details to SAP system through SOAP webservice.
Any body provide me a detail instruction how to integrate SAP Application in to my java application using SOAP webservice. or
In this scenario i will go for any one open source ESB to consume the soap webservice in to my java application, and provide master data to
SAP application, can any one guide to me.Hi,
What IDE are you using?, for example with Eclipse i used WSDL2JAVA plugin in this way i converted the WSDL in java classes easily. Depending your development environment you can use different tools that makes easier the integration using the WSDL.
Regards. -
Timeout when consuming a SOAP web service
Hello,
I'm quite new to Labview and I'm trying to consume a SOAP web service created using a very simple WCF example, but I keep on getting a WebException because of a timeout.
The web service has been created using the example from the WCF getting started tutotial (to keep things simple) http://msdn.microsoft.com/en-us/library/ms734712.aspx
You'll find my .Net solution attached to this message. (You'll have to be administrator to run the service though).
I have used the import web service tool in Labview to create the VI to connect to the web service and all went fine, it created the VI correctly. You'll find the created VI also attached to this message.
Then, I'm trying to create a very simple VI to call the webservice and put the return value inside a numeric indicator. Unfortunately, when I run this VI it crashes with a WebException because of a timeout.
If I run the .Net client, everything goes fine, and if I go to the web service address with a browser, I get the service website, so I know that the server is registered correctly, only Labview can't connect to it for an unknown reason. Everything is setup to connect through localhost:8000, so it can't really be a network problem, I've tried disabling the Windows firewall to see if that was the problem, but it persists.
I've also tried to do something similar using the CDYNE web service, like in the example http://www.ni.com/white-paper/4728/en/, and it works perfectly.
Does anybody have an idea about what could be the issue?
Regards.
Attachments:
WcfTestApp.zip 453 KB
_Calculator.zip 72 KBOK, I found the problem myself, it was a problem with the configuration of the WCF service, I was missing the ServiceMetadata endpoint.
For reference, if somebody stumbles upon the same issue as I had, here's a service configuration that works with Labview (using .Net >=4.0)
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add scheme="http" binding="basicHttpBinding" />
</protocolMapping>
</system.serviceModel>
And here's how to create and run the service host.
using (ServiceHost selfHost = new ServiceHost(typeof(Calculator), new Uri("http://localhost:8000/Calculator")))
try
selfHost.Open();
Console.ReadLine();
selfHost.Close();
catch (CommunicationException e)
selfHost.Abort();
throw; -
Calling functions from SOAP webservice. Can't access webservice functions.
Hi flex gurus,
I am quite new to flex. I am working on an flex application where I am trying to remotely invoke a SOAP webservice which is a wsdl file from Adobe flex 4.6.
I have authenticated the webservice(Basic Authentication Done) and got access to wsdl but I am unable to call the functions in it. I just want to pass the username and password for the user login to the service function which will give me the data useful for my application, but nothing is returned when the webservice function is called.
I am totally blocked at this point. Please help me.
Thanks in advance.Below is my code snippet. But nothing is returned from th service, what is the problem???
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="CheckWS" >
<fx:Script>
<![CDATA[
import flash.net.drm.AuthenticationMethod;
import mx.collections.ArrayCollection;
import mx.messaging.messages.SOAPMessage;
import mx.rpc.AsyncToken;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.http.HTTPService;
import mx.rpc.soap.AbstractWebService;
import mx.rpc.soap.Operation;
import mx.rpc.soap.SOAPFault;
import mx.rpc.soap.SOAPHeader;
import mx.rpc.soap.SOAPResult;
import mx.rpc.soap.WebService;
import mx.rpc.wsdl.WSDLBinding;
import mx.utils.Base64Encoder;
public var resultdata:String;
private function send_data(service:mx.rpc.http.HTTPService):void {
var encoder:Base64Encoder = new Base64Encoder();
encoder.insertNewLines = false;
encoder.encode("auth_usrname:auth_pswd");
service.headers = {Authorization:"Basic " + encoder.toString()};
service.send();
//protected function soapWS_resultHandler(event:ResultEvent):void
// TODO Auto-generated method stub
/* var i:int;
var webresult:String=event.result.toString();
i = 0; */
/* var i:int;
resultdata = event.result.toString();
i = 0;
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:HTTPService id="soapWS"
url="My_Web_URL?wsdl" result="soapWS_resultHandler(event)" resultFormat="xml" useProxy="false" method="POST">
<s:request xmlns="">
<Username>{username.text}</Username>
<Password>{password.text}</Password>
</s:request>
<s:result >
<![CDATA[
var i:int;
dgUserRequest.visible = true;
var obj:Object = new Object();
obj = event.result;
// dgUserRequest.dataProvider = event.result.toString();
// var str:String = new String();
resultdata = obj.toString();
i = 0;
]]>
</s:result>
</s:HTTPService>
</fx:Declarations>
<s:Form x="20" y="10" width="100%">
<s:FormItem color="blue">
<s:Label text="Username" />
<s:TextInput id="username"/>
</s:FormItem>
<s:FormItem color="blue">
<s:Label text="Password" />
<s:TextInput id="password"/>
</s:FormItem>
<s:FormItem color="yellow">
<s:Button label="Submit" click="send_data(soapWS)"/>
</s:FormItem>
</s:Form>
<s:DataGrid id="dgUserRequest" x="20" y="300"
dataProvider="{resultdata}" width="100%">
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="password" headerText="Password" />
<s:GridColumn dataField="username" headerText="User Name"/>
</s:ArrayList>
</s:columns>
</s:DataGrid>
</s:View> -
Consume a restful webservice using plsql
Hi
We need to consume a restful webservice and this needs to be implemented using plsql.
I know that we can use utl_dbws or utl_http to consume SOAP based web services but
there is not much information on how to consume restful web services.
kindly let me know if you have information.
Cheers
rigel851866 wrote:
Im looking for the opposite scenario where i need to access a restful web service from plsql.Why would a RESTful call be any different from a normal URL call? HTTP is the transport mechanism - and UTL_HTTP is used in PL/SQL as the client side of a HTTP conversation.
I posted sample code of a how to use PL/SQL as a brower client in {message:id=1925297} - using a pipeline table to demonstrate the contents returned by the web server in response using plain SQL.
Depending on what the contents is, you can write it into a BLOB (dealing with binary data returned), a CLOB (for XML data for example), or using varchar2 you can for example parse a text/csv response (no need for a pipeline in such a case).
The only real issue I can see with a RESTful service is URL construction - as the URL becomes "parameterised" and not just the query string itself, or the data contents (name values) in the POST structure. -
SOAP Webservice problem on Android
Hello,
I am trying to consume my own SOAP webservice and generated webservice stubs from my wsdl in flash builder.
Testing operations is working fine. Everything is working in "simulated device". But when I run my app on my android device webservice calls are never returning.
They are actually never received on the webservice server.
Just afert 10 to 30 seconds there is a window displayed inside my app. This window is not from me, I only have two label fields in this project to display test webservice data.
Made a image for you:
"click to have good quality"
I tried 2 services:
one where the webservice server is running on my device (10.10.200.40 is devices ip address)
one where the webservice is running in internet.
The devices connection is fine. 10.10.200.40 and outside addresses are pingable and the webservice on the device can be called from flashbuilder's operation testing.
Thanks,
ThomasHello All
I also need to call some simple web mothods. How is this achieved?
I have an as3 mobile project built in flash builder 4.6 which needs to send/ receive simple data with my asp.net web service.
Is your problem related to a security setting in your xml descriptor file perhaps?? -
IDOC---XI----SOAP(Webservice) Sync
Experts,
Need to Develop IDOC-XI--SOAP(Webservice) Sync Communication Interface
I have importing the Standard Idoc & External Def for WSDL ,which has the Request & Response Structure.
I need to handle the SYNC message in the XI and ignore it/ do not pass to the source system.
Any Weblog will help ,
Thnaks
EdwardHi Edward,
Follow the steps given below
In IR create following objects:
1: Import Web Service definition file in External Definition.
2: Import IDoc ZDLVRY. (I have used custom IDoc)
3: Create Message Interface
a. Abstract Synchronous for sender
b. Abstract Synchronous for Receiver
c. Abstract Asynchronous for request
d. Abstract Asynchronous for response
4. Create Message Mapping for Source Request to Target Request
5. Create Message Mapping for Target Response to Source Response.
6. Create Interface mapping and specify proper input in request and response tab.
7. Create Integration Process
Configuration in ID:
1. Create Integration Process for BPM created in IR.
2. Create receiver determination
a. From SAP R/3 to Integration Process
b. From Integration Process to Third Party (Web Service)
c. From Integration Process to SAP R/3
3. Create Interface Determination
a. From SAP R/3 to Integration Process
b. From Integration Process to Third Party (Web Service)
c. From Integration Process to SAP R/3
4. Create Receiver Agreement
5. Create Communication channel for Soap Receiver and IDoc Receiver.
6. Create Receiver Agreement for Soap Receiver
7. Create Receiver Agreement for IDoc Receiver
if u have any doubt in any step please let me know
Regards,
Manisha -
HTTP- XI- SOAP(webservice) - error in outbound mapping
Scenario is HTTP(request)->XI->SOAP(webservice) ->XI->HTTP(response)
2 messsage mappings for request and response (syncronous)
1 interface mapping
HTTP payload reaches XI from there it appears problem translating request data to webservice external URL "http://webservices.imacination.com/distance/Distance.jws".
Message mappings when tested with sample xml in intergration repository results in success. Meaning source populated data gets copied to target in IR testing (both for request and response).
Here is the log from SXMB_MONI
- - - - SystemError synchronous 034E60D2-1D22-6B44-B424-E7A4527B7375 54F73912-E6A9-A741-A815-1F623FC79293 2007-01-23T14:50:58Z - vservice4 mi_inb_ws - vservice4 mi_out mi_out - BestEffort - Application <b>EXCEPTION_DURING_EXECUTE</b> com/sap/xi/tf/_mm_ws_ java.lang.NullPointerException During the application mapping com/sap/xi/tf/_mm_ws_ a <b>java.lang.NullPointerException was thrown</b>: N - - HTTP
server-protocol HTTP/1.1 user-agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) host <xiapp>:8050 content-length 230 remote-addr 10.20.40.120 <b>COMMIT is expected by application</b> !
SAP_CENTRAL - - - - R E C E I V E R - D E T E R M I N A T I O N Cache Content is up to date - - - - I N T E R F A C E - D E T E R M I N A T I O N Cache Content is up to date - - - - number of receivers: 1 Single-receiver split case - - - - Interface Mapping urn:
vmyvendor.org\http2webservice im_ws RuntimeException during appliction Java mapping com/sap/xi/tf/_mm_ws_ java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59)
Any pointers would be greatly appreciated. ThanksFrom XML request message->SOAP Header->Trace & using XML spy problem is in <b>CL_XMS_MAIN-CALL_PLSRV</b>. The log also talks about message persist processing, is it valid for sync webservice?
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30">
+ <Trace level="1" type="B" name="CL_HTTP_PLAIN_INBOUND">
<Trace level="1" type="T">server-protocol HTTP/1.1</Trace>
<Trace level="1" type="T">user-agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)</Trace>
<Trace level="1" type="T">host xiapp:8050</Trace>
<Trace level="1" type="T">content-length 229</Trace>
<Trace level="1" type="T">remote-addr 10.20.40.101</Trace>
</Trace>
<Trace level="1" type="T">COMMIT is expected by application !</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-ENTER_XMS" />
- <!-- ************************************
-->
<Trace level="1" type="B" name="CL_XMS_MAIN-SET_START_PIPELINE" />
- <!-- ************************************
-->
<Trace level="1" type="B" name="SXMBCONF-SXMB_GET_XMB_USE" />
<Trace level="1" type="B" name="CL_XMS_TROUBLESHOOT-ENTER_PLSRV" />
<Trace level="1" type="T">****************************************************</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_UC_EXECUTE" />
- <!-- ************************************
-->
<Trace level="1" type="T">Message-GUID = 69CB2C55A02E1048AC67316A17FD109D</Trace>
<Trace level="1" type="T">PLNAME = CENTRAL</Trace>
<Trace level="1" type="T">QOS = BE</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_SYNC" />
- <!-- ************************************
-->
<Trace level="1" type="T">Get definition of external pipeline CENTRAL</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />
<Trace level="1" type="T">Corresponding internal pipeline SAP_CENTRAL</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
+ <Trace level="1" type="B" name="PLSRV_RECEIVER_DETERMINATION">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
- <Trace level="1" type="B" name="CL_RD_PLSRV-ENTER_PLSRV">
<Trace level="1" type="T">R E C E I V E R - D E T E R M I N A T I O N</Trace>
<Trace level="1" type="T">Cache Content is up to date</Trace>
</Trace>
</Trace>
</Trace>
</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
+ <Trace level="1" type="B" name="PLSRV_INTERFACE_DETERMINATION">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
- <Trace level="1" type="B" name="CL_ID_PLSRV-ENTER_PLSRV">
<Trace level="1" type="T">I N T E R F A C E - D E T E R M I N A T I O N</Trace>
<Trace level="1" type="T">Cache Content is up to date</Trace>
</Trace>
</Trace>
</Trace>
</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
+ <Trace level="1" type="B" name="PLSRV_RECEIVER_MESSAGE_SPLIT">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
- <Trace level="1" type="B" name="CL_XMS_PLSRV_RECEIVER_SPLIT-ENTER_PLSRV">
<Trace level="1" type="T">number of receivers: 1</Trace>
<Trace level="1" type="T">Single-receiver split case</Trace>
</Trace>
</Trace>
</Trace>
</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
<Trace level="1" type="B" name="PLSRV_MAPPING_REQUEST" />
- <!-- ************************************
-->
+ <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
- <!-- ************************************
-->
<Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV" />
- <!-- ************************************
-->
<Trace level="1" type="T">Interface Mapping urn:
vendor\http2webservice im_ws</Trace>
<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_mm_ws_</Trace>
<Trace level="1" type="T">java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy176.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:100) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)</Trace>
<Trace level="1" type="T">Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_mm_ws_: java.lang.NullPointerException; null</Trace>
<Trace level="1" type="T">com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_mm_ws_: java.lang.NullPointerException; null at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:73) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy176.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:100) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Root Cause: java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy176.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:100) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)</Trace>
<Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
- <!-- ************************************
-->
</SAP:Trace> -
hi,
i am working on soap(webservice)) to rfc scenario.
the adapet for sender soap created in business service for reciever side is not dispalyed in adapter monitoing in component monitor of rwb.
any body help will be appriciated.
t&g
vijednerHi vijedner,
have a look to RTW Communiction Channel Monitoring.
Regards,
Udo -
R3 (RFC Asynch) -- XI --- SOAP (webservice Synch)
Hi Experts,
My scenario is :R3 (RFC Asynch) > XI <-> SOAP(webservice is synch)
Step1:- R3 sends the data webservie(SOAP) via XI.
Step2:- Webservice returns the response to XI, But R3(RFC) does not need the resoponse.
how to handle the webservice response in XI.
do i need to use BPM as this scenario is R3(RFC synch) > XI <--> Webservice(soap, synch). Can anybody help me out how to design this scenario.
Thanks,
SivaSo then all u need is to create a async inbound MI. Also the WS should be configured in a way that it sends a HTTP 200 with a SOAP envelope with an empty content for successful delivery.
Refer the below from the SOAP adapter FAQ;
Receiver Asynchronous Calls
Q: What are the correct receiver options for asynchronous calls?
A: The processing mode of the receiver is determined by the message that reaches the receiver. If you are sending a message with some quality of service, to provide this service of quality to the server, your must make sure two things. First, your receiver channel must be configured to pass the XI message ID to the server. Second, your web service must check duplicates using this message ID.
Q: What should my web service return to the adapter for asynchronous calls?
A: Currently, the receiver adapter expects an HTTP 200 with a SOAP envelope with an empty content for successful delivery. Any other response will result in a XI system error and triggers retries of the message. When you want to check duplicates, you should configure your receiver channel to pass the XI message header information to the server.
Prior to SP11, a SOAP fault resulted in the application or system error, depending on whether the SOAP fault contained a detail child element or not. This behavior contradicted the communication model. Therefore, it has been changed so that the adapter generates the system error for any SOAP fault in asynchronous calls.
When you want to check duplicates in your web service, you should configure your receiver channel to pass the XI message header information to the server. When your web service indeed find a duplicate, assuming that the previous message was simply lost, your web service should return an HTTP 200 with an empty SOAP envelope. -
Testing between XI - SOAP(WebService)
Hi,
I am doing scenario R3 (Rfc) - > XI - >SOAP(Webservice). Now R3 system is not available, i want to test the data flow between the XI and SOAP(WebService).
I have tested <b>Webservice</b> with XML Spy , witch is working fine.
Now i want to test Between XI and SOAP(Webservice). Can any one help me is there any way to test between these two systems for time being.
thanks,
dhanush.Hi,
I hope you might have already executed this Scenerio when R3 is Up..Right ..If so... Use that Pay load and paste in in Component monotoring..use test tab and send the message after pointing the right interface and it's namespace.
Regards
Agasthuri Doss -
PI to SOAP webservice performace issue
Dear All,
I have seen message expired error/no response error from one of IDOC--> PI--> SOAP Webservice sceanrio when PI have sending bulk of messages request to SOAP webserver at a time.
This scenario has already implemented using BPM because of complexity/ synchronous communcations.
According my research multiple IDOC's were triggred from SAP system at the same time/some seconds difference, when PI received these IDOC's and processing to SOAP webservice immediately when bulk of messages contact the same time and/or may be same data processing in Webservice and giving the no response/ message expired exception and currently synchronous time set to 5 min but no useful.
Can I know how to process the message one after another when PI contacting the SOAP adapter,
Is their any possible to implement SOAP look up/Soap module for process one after another message?
Appreciate your suggestions....
Thank you.
SateeshHi Sateesh,
Please see the links below. They should help.
How to Use Loop in BPM?
SAP PI7.31 BPM Parallel For Each
Good luck,
Jannus Botha -
Consume an RFC webservice in NWDS 7.0.9
Is it possible to consume an RFC webservice in NWDS 7.0.9. Please provide me with the steps for the same.
Runtime server local path should be:
/usr/sap/EDH/JC04/j2ee/ -- if your WSDL is saved in a local path with only one folder say /wsdl/ then the WSDL should be located there as well as what the tutorial is said. So, in this case it should be:
/usr/sap/EDH/JC04/j2ee/wsdl/myABAPWebService.wsdl
Regards,
Jan
Maybe you are looking for
-
How do I download pictures from Iphoto to external hard drive?
How do I download my iphoto pictures to an external hard drive?
-
Why the 30 GB I Pod specify "video" and the "80 GB" does not?
Besides capacity, is there any difference between them? Windows XP
-
Greetings: I've searched but am unable to find a clue. Using Win 7 Home Premium (updates current) on HP DV3T-2000 64-bit. Recently (possibly after upgrading to FF 14), on godaddy.com on my web hosting product page, clicking the 'Launch' button throws
-
How to use PID function to control a DC motor? ?
Hi everyone, I wanna control a 6v DC motor using PID control toolkit 8.2. - a close loop control system with an encoder sensor - using a DAQ card model: NI USB-6008 - the DAQ card will be able to output pwm signal to the transistor then to my motor I
-
Debugging authorizations for Web Dynpro
Hi I want to know the various Roles which are required to activate external debugging required for WebDynpro.... I have been able to debug in Development environment but i think some roles or authorizations are missing in Quality environment.. Please