Issue with calling an external web service using web service proxy
Hi,
I've created several web services using JDeveloper succesfully in the past, however I'm getting an issue with one that was working ok previously. Have spoken to the developers of the external web service and they say they haven't changed anything. Also if I test the external web service through soapUI for example it seems fine so it would seem that the issue is with the autogenerated code created by JDeveloper.
Basically I get the following exception as it sends the request to the external service:
java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Bad Authentication header format: 'Basic realm="Integration Server" encoding="UTF-8"'
Expected "," at position 33
The user name/password appear correct.
JDev version 10.1.3.42.70
Any ideas?
Many Thanks
Gary
Edited by: user10916721 on 08-May-2012 09:54
Found the answer. Basically I had one proxy web service working and one not both linking to a middle tier written in web methods. THe issue actually ended up being with the web methods code in that the one web service (that was not working) was put together using a backwards compatability mode. Once this was switched back then started working again in JDev.
Similar Messages
-
Issue when calling an external web service - CRM 2013
Hello everyone.
This is my scenario:
I'm doing a real time data integration from CRM to another software. I deployed several plugins, mostly in create/update messages, for the entities i want to sync. The developers of the other software gave me the endpoint of the web service and I created the
client using svcutil. I manually created the binding and gave it to the generated client, along with the endpoint. At the first tests I could sync some registries, but I had some mapping errors. I debugged the plugin, corrected the errors, and when I
want to tests again, the plugin is throwing me an exception when calls any method of the web service. Let me explain the issue:
The exception:
I instantiated the client for the web service (passing to it the binding and the endpoint). And when I'm trying to call any method (ex. Add), it throws the exceptions "InvalidOperationException". I started to debug the code and I notice that
just before to call the web service method, the state of the client stills in "Opening". Of course that is generating the exception.
The complete exception is: "The communication object, System.ServiceModel.ChannelFactory`1[IAxxisWcfServices], cannot be modified while it is in the Opening
state."} System.SystemException {System.InvalidOperationException}
I did a test, outside the CRM environment, on a console app with the same conditions of the web services client (generating with svcutil, manually passing the same binding and endpoint), and the same order of the plugin code, and everything works well; The
state of the client never stills in 'Opening', so I discarded any problem with the web service.
Anyone knows if I'm missing something in the code? or some configuration?
The CRM is 2013 On-premise with last updates.
Thanks in advance.I tried adding the web reference in a console app and works fine. In the plugins this can't be done, because the plugins are deploy in database.
I tried another basic test using ChannelFactory. Only want to retrieve some entity through the external web services:
IPluginExecutionContext context = localContext.PluginExecutionContext;
IOrganizationService service = localContext.OrganizationService;
ITracingService tracer = localContext.TracingService;
try
BasicHttpBinding binding = new BasicHttpBinding();
binding.Name = "BasicHttpBinding_IAxxisWcfServices";
binding.Security.Mode = BasicHttpSecurityMode.None;
binding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
EndpointAddress endpoint = new EndpointAddress(@"http://*****.svc");
ChannelFactory<IAxxisWcfServices> factory = new ChannelFactory<IAxxisWcfServices>(binding, endpoint);
IAxxisWcfServices channel = factory.CreateChannel();
var entity = channel.FindByEntities(new CRM.Application.Context.Dtos.Asegurado( { CrmGuid = "7C3E96C6-C3BC-E411-80DF-0A736AE14667" }, null, new CRM.Framework.Session() { User = "***", Password = "***" });
catch (Exception ex)
throw new InvalidPluginExecutionException(ex.Message);
That test threw the following exception on the GenericParameterAttributes of channelType of factory object:
http://s27.postimg.org/4wf3er8up/Error.png -
How to make a Mediator deal with calling an external Asynchronous Service
Hi,
Using TP 4.
I want my Mediator to invoke an Asynchronous Service that is external to the composite application. But I do not know how to get the reply from that service back into my Mediator.
I have worked with the sample of calling an asynch BPEL component within the same composite - that is fairly easy to accomplish.
What how can I tell the external service to invoke a callback porttype on my Mediator. Can the SCA container work out the correlation between the external service and the correct instance of the SCA composite? Should the Mediator publish the callback interface as an external service at the SCA Composite level? If so - how would the correlation work? If not, how does it work?
Any suggestions - even the statement that I always need a BPEL component in between that will support correlation with external asynch services, if that is the case - will help.
Thanks.
LucasKylie, welcome to the discussion area!
Cable modems behave differently than DSL modems in that they will "remember" the last device that they have associated with. Your modem is "remembering" your MacBook and when you connect the TC, the modem won't connect because it "remembers" the MacBook.
You need to make the modem "forget" a previous device whenever you make a change in the device that is directly connected to the modem. Here's how:
Push the reset button on the modem if it's present
Pull the power cable on the modem
Pull the battery from the modem if it is easily accessible
Leave the modem powered down for 25-30 minutes
Power down the rest of your network as well
After the wait period, connect the modem to the WAN port on the TC with an ethernet cable
Power up the modem first and let it run for 3-4 minutes by itself
Then power up the TC the same way
Power up the rest of your network the same way
Depending on how you had your TC configured with the DSL modem previously, you may need to make a few changes in the settings.
Post back on your progress.
Message was edited by: Bob Timmons
null -
Help with ESB as external SOAP service proxy
We are trying to leverage ESB in the first steps of implementing an SOA solution for our organization.
We have an external SOAP service that we would like to register with Oracle ESB. In turn, are internal programs
would then call the service through the ESB using a SOAP interface. This allows us to hide the external
SOAP service definition from our internal programs, allowing us to modify the external SOAP service or add extra routing
where necessary without affecting the calling client.
CLIENT -> (SOAP) ESB -> (SOAP) EXTERNAL SERVICE
Is this the correct use of ESB?
We are having a couple of issues when trying to use the WSDL ESB creates within our client code. One being Oracle APEX.
We can create forms against the external soap service WSDL, but when we try to hit the WSDL ESB creates, it gives back
"The WSDL document could not be understood by the rendering engine. Click Create Web Service Reference Manually to continue creating a reference for this service."
Any ideas?I was able to get the virtual service running through EM by changing the <hostname>
http://<hostname>:8888/event/CustomerData/IdentitySOAPService
Would the url on the test page be the wsdl url we would hand out to the clients? I am curious as to what the context /event/ is?
Also, if I were doing straight service virtualization, would it be correct to just create a SOAP service hitting the external service? Or is it better to have a routing service exposed to the client?
Client -> ESB [ (Routing Service) -> (Soap Service) ] -> External Service
or
Client -> ESB [ (Soap Service) ] -> External Service -
Issue with calling external web service with authentication details ...
Hi,
I am facing a deployment issue with Oracle ESB. I am trying to call an external Web Service with authentication from ESB SOAP Service. It is working fine with my local ESB version 10.1.3.3.0 Build PCBPEL_10.1.3.3.0_GENERIC_070615.0525; however it is getting an error at our development ESB version 10.1.3.3.1 Build PCBPEL_10.1.3.3.1_GENERIC_RELEASE.
I am getting following error.
An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: exception during SOAP invoke: Server was unable to process request. ---> Object reference not set to an instance of an object.; nested exception is: javax.xml.rpc.soap.SOAPFaultException: Server was unable to process request. ---> Object reference not set to an instance of an object. at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.populateFaultMessage(WSIFOperation_JaxRpc.java:3086) at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeOperation(WSIFOperation_JaxRpc.java:1728) at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1473) at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.executeRequestResponseOperation(WSIFOperation_JaxRpc.java:1196) at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:867) at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:770) at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:790) at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(OutboundAdapterService.java:208) at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(OutboundAdapterService.java:127) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(InitialEventDispatcher.java:118) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:95) at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1424) at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:112) at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(EsbRouterSubscription.java:307) at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(EventDispat
Could one of you please help me out to understand why it is happining.
Thanks in advance.
Jyotirmoy.Hi Mahesh,
One you are missing is authentication token or credentials.
Please refer to the following articles.
http://www.cleverworkarounds.com/2014/02/05/tips-for-using-spd-workflows-to-talk-to-3rd-party-web-services/
A Series of articles related to Web Service in SPD Workflow
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 1
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 2
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 3
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 4
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 5
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 6
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 7
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 8
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 9
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 10
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 11
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 12
Please don't forget to mark it answered, if your problem resolved or helpful -
Help needed with process to call an external web service from within ABAP
Hello,
I have an understanding of how I can provision web service from within SAP so that it can be consumed by external apps.
Now, I am in need to know the, how I can call an external non-sap web service (let's say a java application) or even a public domain web service for that matter:
Is there any lay man's guide out there? which will list following step:
A sample ABAP program calling an external web service
List of all the configurations needed within SAP to make this happen (calling an external web service).
Any help will be greatly appreciated.Hi Matesh,
Please use the following command in Google : site:sdn.sap.com abap consuming web service
There is many samples of your needs on SDN.
Like this one :
http://wiki.sdn.sap.com/wiki/display/Snippets/WebServiceconsumerusingABAP-PROXY
Regards, Gilles. -
MDB receive a message and then call an external web service
Title basically says it all, but I'm looking for suggestions for the best way to have a message driven bean receive a message then process it and call an external web service with the results. This seems like a straightforward problem to solve but I keep getting stuck in the deployment to weblogic when I do it my way so I'm looking for new ideas.
Basically, I have an MDB that gets deployed to WL 10.3 and receives messages just fine. Also, I have a standalone class, that runs from the command line or IDE, that can send messages to the external web service. But when I try to bring the code from the standalone class into the MDB and get it deployed, I can't get all the dependencies to resolve.
So, is there a proper (quick and easy) way to do this? Which wizard should I be using to get Workshop to create web service client so that I can use it in my MDB project? Any suggestions to tutorials?
Thanks,
MattYes BusinessService is the reference point used in OSB to call a backend provider service. So we need to configure the business service based on the external service (they can be http based, jms based, etc ..)
In your case I am assuming it is a http based web service. So below are the steps to be done:
1. Create a business service (if you dont have a wsdl then create it as "Any soap type" else upload the wsdl as a wsdl resource and then use it) and configure the url of the business service with the URL of the external service you want to invoke.
2. From the proxy flow, have a service callout action and select the business service. Then configure the appropriate body and header variables.
3. Then test the proxy service from the test console, you should be able to see the response from the external service as a part of the service callout response.
Let me know if you still have issues.
Thanks,
Patrick -
How to call an external web service from OIM?
Hi,
I have a question on how to call an external web service from OIM within e.g. creating user process? How should it be done; through adapter and task in the process?
Any recomendations?
Thanks in advance!it is not clear to me if you are having problems with calling java code from OIM or if the problem is the web service API.
Lets do some divide and conquer:
Can you create a simple java class that just writes a couple of lines to the log? Please attach this code to the OIM task and make sure it runs.
Once this works we can start looking at the web service call.
Best regards
/Martin -
Calling an external web service from SharePoint 2010
Hi Friends,
Idea is to call an external web service from SharePoint 2010 list.
Can we do this using visual studio 2010, how.
another pointers, please advise.Hi,
You can create Windows Communication Foundation (WCF) web services that you can consume as external content types from Microsoft Business Connectivity Services (BCS).
For more information, you can refer to:
http://msdn.microsoft.com/en-us/library/office/gg318615(v=office.14).aspx
http://www.c-sharpcorner.com/UploadFile/Roji.Joy/connecting-to-a-web-service-using-business-connectivity-serv/
http://blogs.msmvps.com/windsor/2011/11/04/walkthrough-creating-a-custom-asp-net-asmx-web-service-in-sharepoint-2010/
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Calling an External Web-Service Inside an Exception Flow
Hi all,
Is it a good practice in OBPM to call an External Web-Service when the process enters inside a System Exception Flow?Your challenge will be when you throw an exception inside the Exception handler chain. You can't catch an exception (other than in a try/catch block in the logic of an Automatic activity) inside an Exception handler chain.
Sorry - not a good practice.
Dan -
2 issues with call transaction to LS24
Hello All,
There are 2 issues with call transaction to LS24.
<b>1) It doesn't take batch value and displays stock for all batches.
2) When you go back, it doesn't go back to the calling program.</b>
Any thoughts ?
<u>Here is my code:</u>
PARAMETERS: p_lgnum TYPE lgnum,
p_matnr TYPE matnr,
p_werks TYPE werks_d,
p_lgort TYPE lgort_d,
p_charg TYPE charg_d.
START-OF-SELECTION.
END-OF-SELECTION.
PERFORM display_stock_per_batch.
*& Form DISPLAY_STOCK_PER_BATCH
FORM display_stock_per_batch .
SET PARAMETER ID 'LGN' FIELD p_lgnum.
SET PARAMETER ID 'MAT' FIELD p_matnr.
SET PARAMETER ID 'WRK' FIELD p_werks.
SET PARAMETER ID 'LAG' FIELD p_lgort.
SET PARAMETER ID 'CHA' FIELD p_charg.
CALL TRANSACTION 'LS24' AND SKIP FIRST SCREEN.
ENDFORM. " DISPLAY_STOCK_PER_BATCHhello
use this code
perform bdc_dynpro using 'SAPML01S' '0209'.
perform bdc_field using 'BDC_CURSOR'
'RL01S-CHARG'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RL01S-LGNUM'
p_lgnum.
perform bdc_field using 'RL01S-MATNR'
p_matnr.
perform bdc_field using 'RL01S-WERKS'
p_werks.
perform bdc_field using 'RL01S-LGORT'
p_lgort.
perform bdc_field using 'RL01S-BESTQ'
perform bdc_field using 'RL01S-SOBKZ'
perform bdc_field using 'RL01S-CHARG'
p_charg.
perform bdc_dynpro using 'SAPML01S' '0209'.
perform bdc_field using 'BDC_OKCODE'
'/EBACK'.
perform bdc_field using 'BDC_CURSOR'
'RL01S-LGNUM'.
perform bdc_transaction using 'LS24'.
may be it will help u -
Call a external application without using a webservice
Hi all,
How can we make a call to external application without using webservice from BPEL or OSB.Please share any links to refer.
Thanks,
KiranHi.
Probably the options:
1. Adapters. BPEL PM offers a different set of adapters that allows the process to communicate with external apps
2. PRobably a basic HTTP POST could be an option
3. Writing some code inside a Java Embedded activity
Which application are u trying to communicate with?
thx
best -
I experience issue with my Verizon iPhone5s cellular service not working on 3G.
I'm experiencing issue with my Verizon iPhone5s cellular service not working on 3G but LTE works great. I tried resetting network setting, new SIM card, reset iPhone to new too. I'm have the latest carrier code of 16.0. Iphone firmware 7.1.2.
I started experiencing this when verizon started advertising XLTE.
It is very frustrating when internet does not work when I'm in 3G area. Phone calls does work though. Signal is good too.
Thank you in advance.I would agree w you but this only happens on Iphone5S.
Iphone5 works fine. I tested this with other Iphone 5 and 5s.
To test this, go to setting/celluar/turn off "Enable LTE" -
My debit card kept getting rejected by my iTunes account, it there an issue with iTunes? I have been using the same Card since very long time. I downloaded the iOS 8, can I talk to someone so I can get this resolve?
Apple is not here. Contact Apple to resolve your issue:
iTunes Support WorldWide
or
iTunes Support by eMail ww
Cheers,
GB -
Issue with Calling Rest Web Service using Designer workflow
Hello all
I am calling a Rest web service- HTTP Post (yammer API)-
http://www.yammer.com/api/v1/messages.json?data-app-id=myappid&group_id=groupid&body=MyPost in yammer using sharepoint 2013 designer workflow.(My Requirement is to create a yammer post when I approve an item in sharepoint).
but my header parameters are creating issue while executing workflow.
Currently I have these many parameters configured in request header
Accept -application/json; odata=verbose
Content Type -application/json; odata=verbose
content length header -255
Is there anything wrong or I need to additionally pass some values in call web service action?
Any help would be highly appreciatedHi Mahesh,
One you are missing is authentication token or credentials.
Please refer to the following articles.
http://www.cleverworkarounds.com/2014/02/05/tips-for-using-spd-workflows-to-talk-to-3rd-party-web-services/
A Series of articles related to Web Service in SPD Workflow
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 1
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 2
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 3
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 4
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 5
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 6
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 7
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 8
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 9
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 10
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 11
Trials or tribulation?
Inside SharePoint 2013 workflows–Part 12
Please don't forget to mark it answered, if your problem resolved or helpful
Maybe you are looking for
-
Getting admin console snapshot
Hi, We're trying to generate a snapshot of our application when we shut it down. The Weblogic Admin console allows us to get the number of bean in memory, the number cached, etc. for all session and entity beans. The problem with this approach is tha
-
How to create an RDBMS event generator using wlst on weblogic 10.3
how to create an RDBMS event generator using wlst on weblogic 10.3, i got a code fragment needing class "com.bea.wli.management.configuration.RDBMSEventGenChannelConfiguration" but i can' t find this class in classpath on weblogic 10.3, pls help me,
-
Urgent:: How to transport customer exit from dev to test system?
Hi, We have created a Customer exit in our development system in the $tmp package, and we want to transport it to our test system. Can you please tell us how to proceed on this. We are not able to change the package as our package is a development pa
-
When I try to upgrade to Mountain Lion OS form Lion OS, after I select the "Buy App" option I get this "We could not complete your purchase. The product distribution file could not be verified. It may be damaged or was not signed" message, what is ca
-
With Lion, I am forced to login twice ... once with a username password prompt with the full screen background image, and then with the normal Lion login (with my picture). So I have to login twice after sleep. Is this normal or is there some settin