Query: Authentication Error while consuming a web service
Hi All,
I've generted a WSDL file by using the following steps.
1.Created a RFC enabled ABAP pgm
2.Created a web service out of it (using webservice creation wizard - default virtual host. so my port is 8100)3.Released the web service (WSCONFIG)
4.Generated the WSDL file (WSADMIN + CTRL F1).
Then I wanted to consume it from a .Net program. But am getting authentication error in .Net.
Do I need to configure anything for Authentication (username and password) from R/3 side?..
How Do I pass the credential info from .Net?.
Should I take care of any setup other than what I've specified?.
Any Blogs or response would be appreciated.
Thanks,
Joe.
Usually like this:
WSReference1.WSPProxy proxy = new WSReference1.WSPProxy();
proxy.Credentials = new System.Net.NetworkCredentials("Username", "Password");
proxy.PreAuthenticate = true;
proxy.CallMethod();
Similar Messages
-
Client Authentication error while invoking portal web service.
Hi All,
I have created a java portal web service from portal service using NWDS, I am getting client authentication error while invoking the service.
Please tell me where to enter client authenticity details.
regards
Santoshhi,
check whether you have the UME permissions for accessing this webservice.
Rdgs,
Guru -
Query: Error while consuming a web service
Hi All,
I've generted a WSDL file by using the following steps.
1.Created a RFC enabled ABAP pgm
2.Created a web service out of it (<b>using webservice creation wizard - default virtual host. so my port is 8100)</b>3.Released the web service (WSCONFIG)
4.Generated the WSDL file (WSADMIN + CTRL F1).
Then I wanted to consume it from a .Net program. But am getting <b>authentication error in .Net.</b>
<b>Do I need to configure anything for Authentication (username and password) from R/3 side?..
How Do I pass the credential info from .Net?.
Should I take care of any setup other than what I've specified?.</b>
Any Blogs or response would be appreciated.
Thanks,
Joe.hi,
for VBA and using the SOAPToolkit it would be something like:
Set my_client = New SoapClient30
my_client.MSSoapInit2 WSDL, str_WSML, c_SERVICE, c_PORT,
c_SERVICE_NAMESPACE
'using ProxyServer with <CURRENT_USER>
my_client.ConnectorProperty("ProxyServer") = "<CURRENT_USER>"
'Autodetect proxy settings if Internet Explorer is set to autodetect
'by setting EnableAutoProxy to True
my_client.ConnectorProperty("EnableAutoProxy") = True
'endpoint authentication
my_client.ConnectorProperty("AuthUser") = "SAP_USER"
my_client.ConnectorProperty("AuthPassword") = "SAP_PASSWORD"
I suppose it's similar in .NET.
regards,
anton -
Error while consuming CAF Web Service in ABAP
Hi experts,
I need to consume a CAF Web Service in ABAP 7.0. While trying to generate the Proxy Object in SE80 it is thowing an error "Proxy generation terminated: WSDL error. (<extension> not supported)" and terminating the Proxy generation.
Can anyone please help me out with the solution for this?
Thanks in Advance.
Vaishali.Hi,
waiting for reply..... -
Error While Consuming Public Web Service through Stand Alone Proxy
Hi,
I am getting the below error when I am consuming a public web service through Stand Alone Proxy.
java.rmi.RemoteException: Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ).
at com.mindtree.examples.GlobalWeatherSoapStub.getCitiesByCountry(GlobalWeatherSoapStub.java:159)
at com.mindtree.examples.GlobalWeatherSoapStub.getCitiesByCountry(GlobalWeatherSoapStub.java:168)
at com.mindtree.examples.WebServiceClient.main(WebServiceClient.java:18)
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ).
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:903)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1346)
at com.mindtree.examples.GlobalWeatherSoapStub.getCitiesByCountry(GlobalWeatherSoapStub.java:152)
... 2 more
Regards,
VenkateshHi,
I am still facing the same issue.
Regards,
Venkatesh -
Proxy Error while consuming backend web service
Hello,
I try to consume erp backend web services (generated on existing rfcs) with a web dynpro (java) application and get the following error:
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (502) Proxy Error ( The ISA Server denied the specified Uniform Resource Locator (URL). ). The requested URL was:"http://anyExampleUrl"
The called backend service and the portal server reside in the network so no access through the ISA server is required. Consuming the same services by .NET applications works fine.
Do you have any hints?
Cheers, Dennis
Edited by: Dennis Isaak on Sep 23, 2009 2:18 PMHello there,
Check the same webservice is working fine with a SOAP UI, especially the request and response are fine. Then try with the application.
Regards,
Vivek Nidhi. -
"RABAX" occurs on server side error while testing asynchoronous web service
I got error while testing asynchronous web service in WS navigator. I have created asynchronouse web service using RFC. Then I configured it in SOAMANAGER. When I tested it, got error "RABAX occurs on server side". Also I got dump in ST22. It is 'UNCHAUGHT_EXCEPTION - CX_SOAP_SEQ_SCD_ERROR'.
I have tested for synchronous web service it works fine. I found a difference in both web service WSDL file for below parameters value -
commit
blocking
transaction
wsrm
I tried different way .. but no solution .. Plz suggest if someone have any idea.....Its very helpfull....your problem:
Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
Loader: oracle.bpel.common:10.1.3
Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
It happens when server is custom installed, try to reinstall it as full version and problem should disappear otherwise your need another full installation to retrieve and replace orabpel.jar file from (or maybe more) -
Receiving the internal 500 error while testing java web service
HI,
Problem Summary:
Receiving the internal 500 error while testing java web service in integrated weblogic server.
my scenario is like,
retrieve the Payload from Dehydration tables.
We are connected to SOA_INFRA schema and we are retrieving the payload from the dehyadration tables based on InstanceId and ECID using Java Classes.After that i make it as a web service and i deployed in to intergrated weblogic Server.It is generating the Target End Point URI.When am i hitting this it is showing structure of the service.I am testing this service from soapUi it is returning the Server internal error with 500.Here i am passing inputs as InstanceId and ECID.
I had verified in my Jdeveloper,Proxy settings are available.
Error Payload:
I am receiving the Internal 500 error because of JDeveloper HTTP Analyzer encountered an error retrieving: CONNECT https://192.168.0.41:9102 HTTP/1.0.
An exception occurred while retrieving the response for https://192.168.0.41:9102.
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1293)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:65)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:50)
at oracle.jdevimpl.webservices.tcpmonitor.model.HttpMessageBase.readLine(HttpMessageBase.java:658)
at oracle.jdevimpl.webservices.tcpmonitor.model.HttpRequest.read(HttpRequest.java:327)
at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.getResponse(ConnectionHandler.java:405)
at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.run(ConnectionHandler.java:331)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(SSLSocketImpl.java:1916)
at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.negotiateSSL(ConnectionHandler.java:707)
at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.negotiateForwardedSSLConnection(ConnectionHandler.java:672)
at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.run(ConnectionHandler.java:311An exception occurred while retrieving the response for https://192.168.0.41:9102.
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?This error says that port 9102 is a plain HTTP port so either use the correct port (which is listening for HTTPS connections) or use HTTP instead of HTTPS in the URL.
Regards,
Anuj -
Authentication error while consuming web service published in SR of CE 7.1
Hi,
I am having this error while trying to consume a web service published in local services registry. Authentication level is set as Basic in the web service and in end point. I am receiving this error in security log files.
Message:Authentication for web service ServicesRegistrySiService, configuration ServicesRegistrySiPort using security policy sap.com/tcesiuddisrws~earServicesRegistrySiServiceServicesRegistrySiPort*ws failed: Login failed.. (See SAP Note 880896 for further info).
Category: /System/Security/WS/Authentication
Location: com.sap.engine.services.wssec.authentication.authenticate
Application: sap.com/tcesiuddisrws~ear
Thread: HTTP Worker [1]
Data Source: j2ee\cluster\server0\log\system\security_00.log
Correlator ID: 33747500000034965
Argument Objects:
Arguments:
DSR Component:
DSR Transaction: 72b226c009ed11dd9a3e000c29c818ce
DSR User:
Message Code:
Session: 4196
Transaction:
User: Guest
Host: ########
System: ###
Instance: J00
Node: server0
following is the code in a C# .Net 2.0 from where the service is called.
CnarService srv = new CnarService();
NetworkCredential ic = new NetworkCredential("user", "password");
CredentialCache cache = new CredentialCache();
srv.UseDefaultCredentials = false;
srv.PreAuthenticate = true;
srv.Credentials = ic;
try
srv.Timeout = 600;
cnarobject cnObj = srv.GetObject("1");
fnameTextBox.Text = cnObj.firstname;
lnameTextBox.Text = cnObj.lastname;
mnameTextBox.Text = cnObj.middlename;
catch (WebException wex)
MessageBox.Show(wex.Message + wex.Response + wex.StackTrace);
I tried to find the SAP Note 880896 but note doesn't exists. I am receiving similar error while trying to connect Enterprise Services explorer for .Net
Please help.
Regards
MontyHi,
maybe you should see the settings for the ServicesRegistrySiService too. Under nwa->SOA.
I am not sure, but the error seems like not able to use the ServicesRegistrySiPort, which is to be authenticated against.
It is then used for retrieval of web services and publishing to the registry... i suppose.
I am not sure though.
Best regards,
Vera -
Error while creating a web service
Hi all,
I am trying to create a webservice for doing SOAP to JDBC scenario. I created a WSDL file in Configuration. I am using NWDS for developing a web service using this WSDL file.
While creating a web service, I am getting 2 errors after creation of Custum controllers. The errors are as follows:
1. Request_SOAP2RFC_MI_SOAP2RFC_MI cannot be resolved or is not a type
2. WDMessageManager cannot be resolved or is not a type
I am making use of the following pdf file to create the web service.
<a href="https://">www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555</a>
Please help in this regard
Regards,
PavaniHi
Check this thread
WD Message Manager
Reward opints if usefull.... -
Error while completing a web service
Hi,
I have create a RFC, now to use that as a web service I have done the stpes for creating a web service as given in the link
sap technical link tutorial, web service create
when I click on complete button system is giving a messge as Error during activation of web service.
what configuration required for this we have ECC6 system.
regards,
zafar
Edited by: zkarnalkar on Dec 3, 2010 11:13 AMI guess that would depend on the error you're receiving - what is it? I've never seen a generation error for a service provider when following the few steps required, but you could debug the activation if the message isn't clear. Service consumer errors happen all the time and are generally related to WSDL file compatibility.
-
Error while creation of web service model in web dynpro
Hi,
I am getting following error "no services available or local server not accessible" while creation of web service model.
I have already created my web service nad deployed it. It was deployed successfully.
In the web service model creation wizard I am not able to see neither my web service nor any other standard service.
Regards,
Anubha PandeyAre you using the deprecated Web Services model or the new adaptive web services model?
Take a look in this document: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7 -
Error when consuming a web service in CF 11
I am consuming a web service in ColdFusion what was written in .NET. Some methods of the web service work fine, but some we get the below error. We have identified the issue is the name of one of the properties in the web service appears to be the issue. The property name is ID. This is a very common property name so I would think someone has run across this before. It appears that maybe ID is a default property for Axis? I can dump the method that works and I see there is a getID() method with a return type of org.apache.axis.types.Id.
If we change the name of the property to something other than ID it works, but this will cause us to refactor a lot of code.
Here is the error I get when I try to call GetRoles method, which contains an ID property:
Cannot perform web service invocation GetRoles. The fault returned when invoking the web service operation is:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: For input string: "i1"
java.lang.NumberFormatException: For input string: "i1"
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: For input string: "i1"
java.lang.NumberFormatException: For input string: "i1"
at org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java: 1048)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message... ''
I am running CF 11 Update 4.I am not passing any parameters to the method (it has no parameters). On the ColdFusion side I do not use i1 anywhere. I will check with the .net developer on Monday to see if he is using it anywhere in his code. If he is he is using in consistently as the only methods that work from his service are those that do not have an ID property. All services with an ID property give me the same error message.
-
Error while executing ECC_SALESORDERCRTRC web service
hello,
I am getting error while executing the we service ECC_SALESORDERCRTRC using webservice navigator
XML Serialization Error. Object content does not correspond to Schema restrictions of type [http://sap.com/xi/APPL/SE/Global][BusinessDocumentMessageID.Content].
can any one tell me why am i getting this error ?
thanks in advanceHi Ajantha,
The Message Header node is optional. You can skip the complete Message Header node.
Otherwise you need to generate a unique ID for the message and map this ID to BusinessDocumentMessageID.
Try removing Message Header from your input XML. This should solve the error.
Regards,
Shankar -
SOAPException while consuming a web service from OAF
Hi All,
I have successfully created a web service proxy using JDev version 10.1.3.3.0.3 to be inline with the OAF version for our R12 environment 12.1.3.
I then included the poxy in my OAF Workspace/Project and can consume the service 100% fine while running locally.
I get an error once deploying it and running it from the development/testing environments with the following error:
nested exception is: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: For input string: ""
Has anyone ever come across this and resolved the problem?
I can't find anything helpful regarding this.
I am able to telnet etc to the service end point (IP/Port) from the apps server, so I don't think its firewall related?
Thanks,
Anthony
Edited by: AnthonyFromSA on 2012/08/22 7:24 AMHi Anthony,
Am facing the similar issue as you have mentioned. Could you please elaborate on how exactly have you resolved it? I have changed the OC4J properties file and have bounced the server. But still facing the issue.
Thanks in advance.
Regards,
Dhamani
Maybe you are looking for
-
System Error 998 While loading the Labview Run-Time Engine
Hello. I have a DLL made with LV 7.1 I run the dll using a C compiler and works great in WINXP, but cannot run in Win2K. Error is: "System error 998 while loading the Labview Run-Time Engin(c:\program files\National Instruments\Shared\Labview Run-Tim
-
I have never been more frustrated with a website than this one.
This website is utterly the worst labrynth of crap I have ever ever in my entire history of working with the internet have experienced. Who designed this site? a monkey? THE WORST! THE WORST! THE WORST! man, I am so angry and frustrated. This is u
-
I have windows 7 and adobe elements 8. I need to have my computer do a backup and have a large amount of photos in Elements. I would like to know how large the file is so that I can know how big of a flash card or how many dvds I will need.
-
Hi I am computer novice. HP Envy which is now one year old, i had some updates done to it and now the audio doesn't work it has a red x circle around it. What do i do? I am running windows 8.1 Pls help regards Gopal This question was solved. View Sol
-
Service Tax Condition Type.
Hello All, Can anyone please tell me which table can contain a field for tax condition type. In my PO when i click the invoices button i get the Taxes option in that i have two condition types , am not able to find them out. I tried KON