Accessing an XI webservice from EP
Hi,
I am trying to access a webservice running on XI from EP6 SP9. It is giving the exception
com.sap.engine.services.webservice.jaxm.soap.accessor.NetstedSOAPException: Problem in server response: [Not found].. "
any help would be appreciated.
hi,
see whether you are able to access the webservice
through a browser... before testing the same with
the ep.
Probably the web service is down or its returning an
malformed response..
HTH,
Anand
Similar Messages
-
Access ATG REST webservices from javascript..?
Hi All,
Can we access ATG REST web services from Javascript/jQuery..? If yes, then how..?
Thanks,
VishnuHi Nitin, I'm able to access /atg/dynamo/Configuration component's properties using REST services from following code -
*/atg/rest/security/restSecurityConfiguration.xml*
<resource component="/rest/bean/atg/dynamo/Configuration">
<default-acl value="[email protected]:read,write,execute"/>
<property name="httpPort" secure="false"/>
</resource>
client Java code :
public class RestClientRequest {
public static void main(String[] args) {
RestSession mSession = RestSession.createSession("localhost", 8180, "[email protected]", "chinna");
mSession.setUseHttpsForLogin(false);
try{
String loginStatus = mSession.login();
if(loginStatus == null || "null".equals(loginStatus)){
mSession=null;
System.out.println("Login failed");
else{
RestResult result = RestComponentHelper.getPropertyValue("/atg/dynamo/Configuration", "httpPort", null, mSession);
String test = result.readInputStream();
System.out.println("\n\n"+result.readInputStream());
but getting exception when i try to get repository item using the below code
<rest-security>
<resource component="/rest/repository/atg/commerce/catalog/ProductCatalog">
<default-acl>[email protected]:read,write,execute"</default-acl>
</resource>
</rest-security>
Client Java code:
public class RestClientRequest {
public static void main(String[] args) {
RestSession mSession = RestSession.createSession("localhost", 8180, "[email protected]", "chinna");
mSession.setUseHttpsForLogin(false);
try{
String loginStatus = mSession.login();
if(loginStatus == null || "null".equals(loginStatus)){
mSession=null;
System.out.println("Login failed");
else{
RestResult result = RestResult result = RestRepositoryHelper.getItems("/atg/commerce/catalog/ProductCatalog", "product", null, mSession);
String test = result.readInputStream();
System.out.println("\n\n"+result.readInputStream());
Exception :
Login successful
Login Status : ATG3990000
atg.rest.client.RestClientException: java.io.IOException: Unauthorized Server returned HTTP response code: 401 for URL: http://localhost:8180/rest/repository/atg/commerce/catalog/ProductCatalog/product
at atg.rest.client.RestSession.createHttpRequest(RestSession.java:755)
at atg.rest.client.RestSession.createHttpRequest(RestSession.java:722)
at atg.rest.client.RestRepositoryHelper.getItems(RestRepositoryHelper.java:188)
at in.vcarve.RestClientRequest.main(RestClientRequest.java:26)
Caused by: java.io.IOException: Unauthorized Server returned HTTP response code: 401 for URL: http://localhost:8180/rest/repository/atg/commerce/catalog/ProductCatalog/product
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at atg.rest.client.RestSession.createHttpRequest(RestSession.java:745)
... 3 more
Thanks,
Vishnu -
Flex 3 : Accessing Rest Ful Webservices from Flex
Hi ,
I am new to this term RestFul Webservices .
I am using FlexBuilder 3.
For accesing Restful web services , what is the Component Required , is it <mx:HttpService> or the
<mx:Webservice>
Please clarify , Thanks .You have to use HTTPService
-
How to consume a webservice from sap crm
Hi All,
How to consume and access an external webservice from sap crm?
Suggest me.
Regards,
Sanjani
Edited by: Sanjani on Dec 6, 2010 3:09 PM
Edited by: Sanjani on Dec 10, 2010 1:08 PMPlease check the wiki link mentioned below. It will help you to an extent.
http://wiki.sdn.sap.com/wiki/display/CRM/CreatingWebServiceinSAP+CRM
Rg,
Harshit -
Problem accessing webservice from abstract portal component
Hi,
I have created a webservice from a portal service. So i have created one more portal application to accessing that web service. In that, i have done the following:
-> Portal Service from Wsdl file - Client Side
-> I have entered the Wsdl file name as, the location of the WebService
-> I have selected the methods what i want to use in my application
-> Finally i have given my ServiceName, Alias and Package as well.
-> I have created one application object (Abstract Portal Component) to access the Web Service.
-> Inside that AbstractPortalComponent, i have written the coding to access the methods.
-> I have created one system with System Alias, i used this Alias name in my portalapp.xml
While running it shows the error as,
<b>com.sapportals.portal.prt.service.ServiceException: Service not found: com.sap.portal.prt.soap.Alias</b>
Help me in this, Thanks in Advance.,
With Regards,
Venkatesh.K.Hi venkatesh I ahve similar problem please could you share with us how did you sort out this error?
Sreekanth -
Problem accessing Webservices from Flex
Hi All,
I have created a Webservice in Abap and configured it using
SOAMANAGER transaction. I am able to succesfully test the Web serivice which I have created in 'Soamanager ' transaction.
But when I am calling this Webservice from Flex application I am getting an error as " FAULT : faultCode:WSDLError faultString:'Runtime exception Error #1009' faultDetail:'null' "
We tried calling the Webservice outside SAP from the FLex application, it is working fine.
Please let me know how to rectify this error . It's an urgent requirement.
Thanks and regards,
Uma.hi
when you create your destinations for your webservices in the SOAMANAGER-> Destination Template
you would be providing wsdl url and destination , and in the below you can
find the username and pwd that need to set , you need to select the radio buttons with logon tickets ,
username , password , there , re-check the username and pwd by selecting the radio button with selecting the
radio button username password , and even check the webservice in the WSNAVIGATOR , whether its working
fine , and other thing is there is situation where your webservice may work fine inthe wsnavigator even then there would
be some problem inthe webservice , even check this scenario.
Thanks -
Error while running a eBS webservice from the SoapUI Tool
Hello All,
I am trying to run PurchaseOrder Service webservice from the soap ui tool, In this service there are 6 methods are available and i am currently running the QueryPurchaseOrder method:
Following is the soap message I am running:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pox="http://xmlns.oracle.com/java/oracle/apps/po/services/poxpoepo/POXPOEPOServices_DocStyle/" xmlns:orac="http://oracle.apps.fnd.soa.forms.services.rt.formsSchema/">
<soapenv:Header>
<pox:SOAHeader>
<!--Optional:-->
<pox:Responsibility></pox:Responsibility>
<!--Optional:-->
<pox:RespApplication></pox:RespApplication>
<!--Optional:-->
<pox:SecurityGroup></pox:SecurityGroup>
<!--Optional:-->
<pox:NLSLanguage></pox:NLSLanguage>
<!--Optional:-->
<pox:Org_Id>204</pox:Org_Id>
</pox:SOAHeader>
</soapenv:Header>
<soapenv:Body>
<pox:queryPurchaseOrder_Request>
<orac:OutsideProcessing>
<!--Optional:-->
<orac:Job></orac:Job>
<!--Optional:-->
<orac:Line></orac:Line>
<!--Optional:-->
<orac:OSPUnitType></orac:OSPUnitType>
<!--Optional:-->
<orac:OperationSequence></orac:OperationSequence>
<!--Optional:-->
<orac:ResourceSequence></orac:ResourceSequence>
<!--Optional:-->
<orac:ResourceCode></orac:ResourceCode>
</orac:OutsideProcessing>
<orac:PoHeaders>
<!--Zero or more repetitions:-->
<orac:PoLines>
<orac:LineNum>1</orac:LineNum>
<orac:LineType>Goods</orac:LineType>
<!--Optional:-->
<orac:Item></orac:Item>
<!--Optional:-->
<orac:ItemRevision></orac:ItemRevision>
<!--Optional:-->
<orac:Job></orac:Job>
<orac:ItemCategory>MISC.MISC</orac:ItemCategory>
<orac:ItemDescription>test</orac:ItemDescription>
<orac:UnitOfMeasure>EA</orac:UnitOfMeasure>
<!--Optional:-->
<orac:LineOrderQuantity></orac:LineOrderQuantity>
<!--Optional:-->
<orac:Quantity></orac:Quantity>
<!--Optional:-->
<orac:LineUnitPrice></orac:LineUnitPrice>
<!--Optional:-->
<orac:PromisedDate></orac:PromisedDate>
<!--Optional:-->
<orac:NeedByDate></orac:NeedByDate>
<!--Optional:-->
<orac:VendorProductNum></orac:VendorProductNum>
<!--Optional:-->
<orac:Amount></orac:Amount>
<!--Optional:-->
<orac:ChargeAccount></orac:ChargeAccount>
<!--Optional:-->
<orac:Reserved></orac:Reserved>
<!--Optional:-->
<orac:OPMLineSecondaryUOM></orac:OPMLineSecondaryUOM>
<!--Optional:-->
<orac:OPMLineSecondaryQuantity></orac:OPMLineSecondaryQuantity>
<!--Optional:-->
<orac:SecondaryQuantity></orac:SecondaryQuantity>
<!--Optional:-->
<orac:PreferredLineGrade></orac:PreferredLineGrade>
<!--Optional:-->
<orac:ItemListPrice></orac:ItemListPrice>
<!--Optional:-->
<orac:ItemMarketPrice></orac:ItemMarketPrice>
<!--Optional:-->
<orac:PriceType></orac:PriceType>
<!--Optional:-->
<orac:AllowPriceOverride></orac:AllowPriceOverride>
<!--Optional:-->
<orac:PriceLimit></orac:PriceLimit>
<!--Optional:-->
<orac:Negotiated></orac:Negotiated>
<!--Optional:-->
<orac:ContractNum></orac:ContractNum>
<!--Optional:-->
<orac:GlobalContract></orac:GlobalContract>
<!--Optional:-->
<orac:ContractOwningOrg></orac:ContractOwningOrg>
<!--Optional:-->
<orac:SourceDocumentType></orac:SourceDocumentType>
<!--Optional:-->
<orac:FromDocumentNum></orac:FromDocumentNum>
<!--Optional:-->
<orac:FromDocumentLineNum></orac:FromDocumentLineNum>
<!--Optional:-->
<orac:GlobalBlanket></orac:GlobalBlanket>
<!--Optional:-->
<orac:SourceDocumentOwningOrg></orac:SourceDocumentOwningOrg>
<!--Optional:-->
<orac:SupplierQuotation></orac:SupplierQuotation>
<!--Optional:-->
<orac:ProjectsContractNum></orac:ProjectsContractNum>
<!--Optional:-->
<orac:ProjectsContractRevNum></orac:ProjectsContractRevNum>
<!--Optional:-->
<orac:NoteToSupplier></orac:NoteToSupplier>
<!--Optional:-->
<orac:UNNum></orac:UNNum>
<!--Optional:-->
<orac:UNNumDescription></orac:UNNumDescription>
<!--Optional:-->
<orac:HazardClass></orac:HazardClass>
<!--Optional:-->
<orac:CapitalExpense></orac:CapitalExpense>
<!--Optional:-->
<orac:TransactionNature></orac:TransactionNature>
<!--Optional:-->
<orac:ContractorFirstName></orac:ContractorFirstName>
<!--Optional:-->
<orac:ContractorLastName></orac:ContractorLastName>
<!--Optional:-->
<orac:ContractorStartDate></orac:ContractorStartDate>
<!--Optional:-->
<orac:ContractorEndDate></orac:ContractorEndDate>
<!--Optional:-->
<orac:MinimumLineReleaseAmount></orac:MinimumLineReleaseAmount>
<!--Optional:-->
<orac:LineQuantityAgreed></orac:LineQuantityAgreed>
<!--Optional:-->
<orac:LineAmountAgreed></orac:LineAmountAgreed>
<!--Optional:-->
<orac:LlineQuantityReleased></orac:LlineQuantityReleased>
<!--Optional:-->
<orac:LineAmountReleased></orac:LineAmountReleased>
<!--Optional:-->
<orac:LineExpirationDate></orac:LineExpirationDate>
<!--Optional:-->
<orac:CumulativePricing></orac:CumulativePricing>
<!--Zero or more repetitions:-->
<orac:PoShipments>
<orac:ShipmentNum>1</orac:ShipmentNum>
<orac:ShiptoOrganization>M1</orac:ShiptoOrganization>
<orac:ShipToLocation>M1- Seattle Mfg</orac:ShipToLocation>
<!--Optional:-->
<orac:UnitOfMeasure></orac:UnitOfMeasure>
<orac:ShipmentQuantity>1</orac:ShipmentQuantity>
<!--Optional:-->
<orac:PromisedDate></orac:PromisedDate>
<!--Optional:-->
<orac:NeedByDate></orac:NeedByDate>
<!--Optional:-->
<orac:OriginalPromisedDate></orac:OriginalPromisedDate>
<!--Optional:-->
<orac:CountryofOrigin></orac:CountryofOrigin>
<!--Optional:-->
<orac:ChargeAccount></orac:ChargeAccount>
<!--Optional:-->
<orac:ShipmentAmount></orac:ShipmentAmount>
<!--Optional:-->
<orac:EncumberedFlag></orac:EncumberedFlag>
<!--Optional:-->
<orac:OPMShipmentSecondaryUOM></orac:OPMShipmentSecondaryUOM>
<!--Optional:-->
<orac:OPMShipmentSecondaryQuantity></orac:OPMShipmentSecondaryQuantity>
<!--Optional:-->
<orac:PreferredShipmentGrade></orac:PreferredShipmentGrade>
<!--Optional:-->
<orac:ReceiptCloseTolerance></orac:ReceiptCloseTolerance>
<!--Optional:-->
<orac:InvoiceCloseTolerance></orac:InvoiceCloseTolerance>
<orac:MatchApprovalLevel>3WAY</orac:MatchApprovalLevel>
<orac:InvoiceMatchOption>P</orac:InvoiceMatchOption>
<!--Optional:-->
<orac:AccrueatReceipt></orac:AccrueatReceipt>
<!--Optional:-->
<orac:Firm></orac:Firm>
<!--Optional:-->
<orac:Item></orac:Item>
<!--Optional:-->
<orac:Category></orac:Category>
<!--Optional:-->
<orac:Description></orac:Description>
<!--Optional:-->
<orac:VendorProductNum></orac:VendorProductNum>
<!--Optional:-->
<orac:ShipmentStatus></orac:ShipmentStatus>
<!--Optional:-->
<orac:QuantityReceived></orac:QuantityReceived>
<!--Optional:-->
<orac:QuantityCancelled></orac:QuantityCancelled>
<!--Optional:-->
<orac:QuanittyBilled></orac:QuanittyBilled>
<!--Optional:-->
<orac:AmountReceived></orac:AmountReceived>
<!--Optional:-->
<orac:AmountCancelled></orac:AmountCancelled>
<!--Optional:-->
<orac:AmountBilled></orac:AmountBilled>
<!--Optional:-->
<orac:OPMSecondaryQuantityReceived></orac:OPMSecondaryQuantityReceived>
<!--Optional:-->
<orac:OPMSecondaryCancelled></orac:OPMSecondaryCancelled>
<orac:BreakPrice></orac:BreakPrice>
<!--Optional:-->
<orac:PriceDiscount></orac:PriceDiscount>
<!--Optional:-->
<orac:PriceBreakStartDate></orac:PriceBreakStartDate>
<!--Optional:-->
<orac:PriceBreakEndDate></orac:PriceBreakEndDate>
<!--Optional:-->
<orac:EarlyReceiptDays></orac:EarlyReceiptDays>
<!--Optional:-->
<orac:LateReceiptDays></orac:LateReceiptDays>
<!--Optional:-->
<orac:ReceiptDaysAction></orac:ReceiptDaysAction>
<!--Optional:-->
<orac:LastAcceptDate></orac:LastAcceptDate>
<!--Optional:-->
<orac:ReceiptTolerance></orac:ReceiptTolerance>
<!--Optional:-->
<orac:ReceiptToleranceAction></orac:ReceiptToleranceAction>
<!--Optional:-->
<orac:AllowSubstituteReceipts></orac:AllowSubstituteReceipts>
<!--Optional:-->
<orac:ReceiptRouting></orac:ReceiptRouting>
<!--Optional:-->
<orac:EnforceShipTo></orac:EnforceShipTo>
<!--Optional:-->
<orac:NoteforReceiver></orac:NoteforReceiver>
<!--Optional:-->
<orac:VMIEnabled></orac:VMIEnabled>
<!--Optional:-->
<orac:ConsignedShipment></orac:ConsignedShipment>
<!--Zero or more repetitions:-->
<orac:PoDistributions>
<orac:DistributionNum>1</orac:DistributionNum>
<orac:DestinationType>Expense</orac:DestinationType>
<!--Optional:-->
<orac:Requester></orac:Requester>
<!--Optional:-->
<orac:DeliverToLocation></orac:DeliverToLocation>
<!--Optional:-->
<orac:DestinationSubinventory></orac:DestinationSubinventory>
<orac:DistributionQuantity>?</orac:DistributionQuantity>
<!--Optional:-->
<orac:DistributionAmount></orac:DistributionAmount>
<!--Optional:-->
<orac:POChargeAccount></orac:POChargeAccount>
<!--Optional:-->
<orac:DestinationChargeAccount></orac:DestinationChargeAccount>
<!--Optional:-->
<orac:RecoveryRate></orac:RecoveryRate>
<!--Optional:-->
<orac:GLDate></orac:GLDate>
<!--Optional:-->
<orac:EncumberedFlag></orac:EncumberedFlag>
<!--Optional:-->
<orac:RequestingOrganization></orac:RequestingOrganization>
<!--Optional:-->
<orac:RequisitionNum></orac:RequisitionNum>
<!--Optional:-->
<orac:RequisitionLineNum></orac:RequisitionLineNum>
<!--Optional:-->
<orac:OnlineRequisition></orac:OnlineRequisition>
<!--Optional:-->
<orac:RateDate></orac:RateDate>
<!--Optional:-->
<orac:Rate></orac:Rate>
<!--Optional:-->
<orac:POAccrualAccount></orac:POAccrualAccount>
<!--Optional:-->
<orac:POBudgetAccount></orac:POBudgetAccount>
<!--Optional:-->
<orac:POVarianceAccount></orac:POVarianceAccount>
<!--Optional:-->
<orac:ChargeAccountDescription></orac:ChargeAccountDescription>
<!--Optional:-->
<orac:BudgetAccountDescription></orac:BudgetAccountDescription>
<!--Optional:-->
<orac:AccrualAccountDescription></orac:AccrualAccountDescription>
<!--Optional:-->
<orac:VarianceAccountDescription></orac:VarianceAccountDescription>
<!--Optional:-->
<orac:Project></orac:Project>
<!--Optional:-->
<orac:Task></orac:Task>
<!--Optional:-->
<orac:Award></orac:Award>
<!--Optional:-->
<orac:ExpenditureType></orac:ExpenditureType>
<!--Optional:-->
<orac:ExpenditureOrganization></orac:ExpenditureOrganization>
<!--Optional:-->
<orac:ExpenditureDate></orac:ExpenditureDate>
<!--Optional:-->
<orac:ProjectsContractLineNum></orac:ProjectsContractLineNum>
<!--Optional:-->
<orac:ProjectsDeliverableNum></orac:ProjectsDeliverableNum>
<!--Optional:-->
<orac:EndItemUnitNum></orac:EndItemUnitNum>
<!--Optional:-->
<orac:DestinationChargeAccountDescription></orac:DestinationChargeAccountDescription>
<!--Optional:-->
<orac:DestinationVarianceAccountDescription></orac:DestinationVarianceAccountDescription>
<!--Optional:-->
<orac:DestinationVarianceAccount></orac:DestinationVarianceAccount>
</orac:PoDistributions>
</orac:PoShipments>
</orac:PoLines>
<!--Zero or more repetitions:-->
<orac:PoBpaDistributions>
<!--Optional:-->
<orac:Encumber></orac:Encumber>
<!--Optional:-->
<orac:BudgetAccount></orac:BudgetAccount>
<!--Optional:-->
<orac:GLDate></orac:GLDate>
<!--Optional:-->
<orac:AmountToEncumber></orac:AmountToEncumber>
</orac:PoBpaDistributions>
<orac:OperatingUnit>Vision Operations</orac:OperatingUnit>
<orac:PONum>6194</orac:PONum>
<!--Optional:-->
<orac:RevisionNum></orac:RevisionNum>
<orac:DocumentType>Standard Purchase Order</orac:DocumentType>
<!--Optional:-->
<orac:CreationDate></orac:CreationDate>
<!--Optional:-->
<orac:Supplier></orac:Supplier>
<!--Optional:-->
<orac:SupplierSite></orac:SupplierSite>
<!--Optional:-->
<orac:SupplierContact></orac:SupplierContact>
<!--Optional:-->
<orac:ShipToLocation></orac:ShipToLocation>
<!--Optional:-->
<orac:BillToLocation></orac:BillToLocation>
<!--Optional:-->
<orac:Currency></orac:Currency>
<orac:Buyer>31994</orac:Buyer>
<!--Optional:-->
<orac:Status></orac:Status>
<!--Optional:-->
<orac:POTotal></orac:POTotal>
<!--Optional:-->
<orac:AmounttAgreed></orac:AmounttAgreed>
<!--Optional:-->
<orac:HeaderDescription></orac:HeaderDescription>
<!--Optional:-->
<orac:PCard></orac:PCard>
<!--Optional:-->
<orac:AmountReleased></orac:AmountReleased>
<!--Optional:-->
<orac:GlobalAgreementFlag></orac:GlobalAgreementFlag>
<!--Optional:-->
<orac:PaymentTerms></orac:PaymentTerms>
<!--Optional:-->
<orac:FreightTerms></orac:FreightTerms>
<!--Optional:-->
<orac:Carrier></orac:Carrier>
<!--Optional:-->
<orac:FreeOnBoard></orac:FreeOnBoard>
<!--Optional:-->
<orac:PayOn></orac:PayOn>
<!--Optional:-->
<orac:TransportationArranged></orac:TransportationArranged>
<!--Optional:-->
<orac:ConfirmingOrder></orac:ConfirmingOrder>
<!--Optional:-->
<orac:Firm></orac:Firm>
<!--Optional:-->
<orac:AcceptanceRequired></orac:AcceptanceRequired>
<!--Optional:-->
<orac:AcceptanceDueDate></orac:AcceptanceDueDate>
<!--Optional:-->
<orac:SupplyAgreement></orac:SupplyAgreement>
<!--Optional:-->
<orac:SupplierNote></orac:SupplierNote>
<!--Optional:-->
<orac:ReceiverNote></orac:ReceiverNote>
<!--Optional:-->
<orac:EffectiveStartDate></orac:EffectiveStartDate>
<!--Optional:-->
<orac:EffectiveEndDate></orac:EffectiveEndDate>
<!--Optional:-->
<orac:AmountLimit></orac:AmountLimit>
<!--Optional:-->
<orac:MinimumHeaderReleaseAmount></orac:MinimumHeaderReleaseAmount>
<!--Optional:-->
<orac:PriceUpdateTolerance></orac:PriceUpdateTolerance>
<orac:PoHeaderId>91781</orac:PoHeaderId>
</orac:PoHeaders>
</pox:queryPurchaseOrder_Request>
</soapenv:Body>
</soapenv:Envelope>
Now when i run this, I get the below error in the SOAP UI Tool:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<Error>[Ljava.lang.StackTraceElement;@118da51</Error>
</env:Body>
</env:Envelope>
Can u please suggest any solution to resolve this error.
Thanks & Regards,
Aboothahir MHello All,
I checked in the log.xml file in the apps server and got the below error:
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2012-01-18T16:50:24.110+05:30</TSTZ_ORIGINATING>
<COMPONENT_ID>j2ee</COMPONENT_ID>
<MSG_TYPE TYPE="ERROR"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>amsgurbluapp009.in.ibm.com</HOST_ID>
<HOST_NWADDR>9.126.177.20</HOST_NWADDR>
<MODULE_ID>security</MODULE_ID>
<THREAD_ID>12</THREAD_ID>
<USER_ID>orar12</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>1326885623:9.126.177.20:24571:0:38</UNIQUE_ID><SEQ>5</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>Error when intializing assertion issuer context </MSG_TEXT>
<SUPPL_DETAIL><![CDATA[java.lang.IllegalArgumentException: Invalid assertion
at oracle.security.jazn.callback.SAMLTokenCallbackInternal.setAssertion(SAMLTokenCallbackInternal.java:70)
at oracle.security.jazn.callback.WSSCallbackHandler.handle(WSSCallbackHandler.java:107)
at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(LoginContext.java:955)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext.java:951)
at oracle.security.jazn.login.module.saml.SAMLLoginModule.initializeAssertionIssuerContext(SAMLLoginModule.java:278)
at oracle.security.jazn.login.module.saml.SAMLLoginModule.initializeProperties(SAMLLoginModule.java:233)
at oracle.security.jazn.login.module.saml.SAMLLoginModule.initialize(SAMLLoginModule.java:91)
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:597)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at oracle.security.wss.jaas.JAASAuthManager.invokeLogin(JAASAuthManager.java:109)
at oracle.security.wss.jaas.JAASAuthManager.authenticate(JAASAuthManager.java:174)
at oracle.security.wss.UsernameTokenProcessor.getSubject(UsernameTokenProcessor.java:143)
at oracle.security.wss.WSSecurity.process(WSSecurity.java:1107)
at oracle.security.wss.interceptors.AbstractSecurityInterceptor.handleInbound(AbstractSecurityInterceptor.java:131)
at oracle.security.wss.interceptors.ServiceInterceptor.handleRequest(ServiceInterceptor.java:60)
at oracle.j2ee.ws.common.mgmt.runtime.InterceptorChainImpl.handleRequest(InterceptorChainImpl.java:124)
at oracle.j2ee.ws.common.mgmt.runtime.AbstractInterceptorPipeline.handleRequest(AbstractInterceptorPipeline.java:87)
at oracle.j2ee.ws.server.provider.management.AbstractProviderInterceptorPipeline.executeRequestInterceptorChain(AbstractProviderInterceptorPipeline.java:452)
at oracle.j2ee.ws.server.provider.ProviderProcessor.executeInterceptorRequestChain(ProviderProcessor.java:750)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:112)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:194)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
]]></SUPPL_DETAIL>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2012-01-18T16:50:25.524+05:30</TSTZ_ORIGINATING>
<COMPONENT_ID>webservices</COMPONENT_ID>
<MSG_ID>OWS-04005</MSG_ID>
<MSG_TYPE TYPE="ERROR"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>amsgurbluapp009.in.ibm.com</HOST_ID>
<HOST_NWADDR>9.126.177.20</HOST_NWADDR>
<MODULE_ID>service</MODULE_ID>
<THREAD_ID>14</THREAD_ID>
<USER_ID>orar12</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>1326885621:9.126.177.20:24505:0:46</UNIQUE_ID><SEQ>6</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>An error occurred for port: SOAProvider: oracle.j2ee.ws.common.soap.fault.SOAP11FaultException: The security token could not be authenticated or authorized.</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2012-01-18T16:50:25.527+05:30</TSTZ_ORIGINATING>
<COMPONENT_ID>webservices</COMPONENT_ID>
<MSG_ID>OWS-04005</MSG_ID>
<MSG_TYPE TYPE="ERROR"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>amsgurbluapp009.in.ibm.com</HOST_ID>
<HOST_NWADDR>9.126.177.20</HOST_NWADDR>
<MODULE_ID>service</MODULE_ID>
<THREAD_ID>12</THREAD_ID>
<USER_ID>orar12</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>1326885623:9.126.177.20:24571:0:38</UNIQUE_ID><SEQ>6</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>An error occurred for port: SOAProvider: oracle.j2ee.ws.common.soap.fault.SOAP11FaultException: The security token could not be authenticated or authorized.</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2012-01-18T16:56:08.311+05:30</TSTZ_ORIGINATING>
<COMPONENT_ID>webservices</COMPONENT_ID>
<MSG_ID>OWS-04052</MSG_ID>
<MSG_TYPE TYPE="NOTIFICATION"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>amsgurbluapp009.in.ibm.com</HOST_ID>
<HOST_NWADDR>9.126.177.20</HOST_NWADDR>
<MODULE_ID>service</MODULE_ID>
<THREAD_ID>13</THREAD_ID>
<USER_ID>orar12</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>1326885960:9.126.177.20:23538:0:57</UNIQUE_ID><SEQ>242</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>Unable to determine operation id from SOAP Message.</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
By
Aboo -
How can I call a stateful webservice from a user-defined XPath function?
I'm calling a stateful webservice from a BPEL process using a PartnerLink which implements Custom Header Handler classes to handle the session state, storing the cookie as a property of the PartnerLink.
I'd also like to call this same stateful webservice, in the same session, from a user-defined XPath function enabling me to call this from an XSL Transformation.
Is this in any way possible? Can I access the cookie and attach it to the webservice call made by the user-defined XPath function?Actually, as long as the servlet returns valid javascript, you can indeed "call it" from the client. It will initiate a request and return the result to the browser.
This example uses Perl, but it could be easily modified to go to a servlet instead.
Note that it is only supported in DOM browsers (IE6+/NN6+/etc)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title> Test server-side JS </title>
</head>
<body>
<script type="text/javascript">
function checkIt(variable, value)
var newScript = "cgi-bin/validateJS.cgi?"+variable+"="+value;
var body = document.getElementsByTagName('body').item(0)
var scriptTag = document.getElementById('loadScript');
if(scriptTag) body.removeChild(scriptTag);
script = document.createElement('script');
script.src = newScript;
script.type = 'text/javascript';
script.id = 'loadScript';
body.appendChild(script)
</script>
<p>Test.</p>
<form id="f1" action="">
<input type="text" name="t1" id="t1" onChange="checkIt(this.name, this.value)">
</body>
</html>
validateJS.cgi
#!/opt/x11r6/bin/perl
use CGI qw(:all);
my @valArray = split(/=/,$ENV{QUERY_STRING});
print "Content-type: text/javascript\n\n";
# myPass is the password
$myPass = "foobar";
if ("$valArray[1]" eq "$myPass")
print "alert(\"Success!!\")";
else
print "alert(\"Failure!!\")"; -
Error while calling webservice from application module
Hi all
I have generated a Proxy from a web Service and i am trying to call the web service from an Application Module it is throwing me error
JBO-29000: Unexpected exception caught: oracle.classloader.util.AnnotatedNoClassDefFoundError, msg= Missing class: webservices.types.com.siebel.xml.order_interface.Orders Dependent class: java.lang.reflect.Array Loader: jre.bootstrap Code-Source: unknown Configuration: jre bootstrap
Missing class: webservices.types.com.siebel.xml.order_interface.Orders Dependent class: java.lang.reflect.Array Loader: jre.bootstrap Code-Source: unknown Configuration: jre bootstrap
My web Service is correct, as i have executed the client and it is working fine, but when i try to access the web service from an application module it is throwing me this error. So any light on this issue will be very helpful
thanksThis forum is for XML DB issues. XML DB is a feature of 9iR2 and later.You need t look in the XML Technology forum
-
Access a web service from pl/sql
I am trying to access a web service from pl/sql. I have downloaded the code from
http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html
But when I try to execute the sql, I am getting the following error:
SQL> @local.sql
Package created.
Package body created.
No errors.
BEGIN dbms_output.put_line(time_service.get_local_time('94065')); END;
ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1022
ORA-12545: Connect failed because target host or object does not exist
ORA-06512: at "WEB.DEMO_SOAP", line 71
ORA-06512: at "WEB.TIME_SERVICE", line 15
ORA-06512: at line 1
It is failing at:
resp := demo_soap.invoke(req,
'http://www.ripedev.com/webservices/LocalTime.asmx',
'http://ripedev.com/xsd/ZipCodeResults.xsd/LocalTimeByZipCode');
But in the examples that I got from downloading source code, site used was:
'http://www.alethea.net/webservices/LocalTime.asmx',
'http://www.alethea.net/webservices/LocalTimeByZipCode');
This site was not accessible. So I changed to the working site as follows, but still I
am getting the above error.
But I can access this site, if I type in the above address in the address bar of IE.
Can any body help?
I have oracle9i client installed on my machine and able to connect to server thru toad and sql plus.
or IF any body refers me to a good website for the topic of "using webservies from pl/sql" that would be great too!Here is the complete code:
time_service:
CREATE OR REPLACE PACKAGE time_service AS
FUNCTION get_local_time(zipcode IN VARCHAR2) RETURN VARCHAR2;
END;
CREATE OR REPLACE PACKAGE BODY time_service AS
-- Location of Web service definition
-- http://www.alethea.net/webservices/LocalTime.asmx?WSDL
-- http://www.ripedev.com/webservices/LocalTime.asmx?WSDL
-- http://www.xmethods.com/sd/2001/CurrencyExchangeService.wsdl
--'http://ripedev.com/xsd/ZipCodeResults.xsd/LocalTimeByZipCode style=document');
FUNCTION get_local_time(zipcode IN VARCHAR2) RETURN VARCHAR2 IS
req demo_soap.request;
resp demo_soap.response;
BEGIN
dbms_output.put_line('before new request..');
req := demo_soap.new_request('LocalTimeByZipCode',
'xmlns="http://ripedev.com/xsd/ZipCodeResults.xsd"');
dbms_output.put_line('before add param..');
demo_soap.add_parameter(req, 'ZipCode', 'xsd:string', zipcode);
dbms_output.put_line('before invoke..');
resp := demo_soap.invoke(req,
'http://www.ripedev.com/webservices/LocalTime.asmx',
'http://ripedev.com/xsd/ZipCodeResults.xsd/LocalTimeByZipCode');
dbms_output.put_line('before return..');
RETURN demo_soap.get_return_value(resp, 'LocalTimeByZipCodeResult',
'xmlns="http://www.ripedev.com/webservices/"');
END;
BEGIN
dbms_output.put_line('inside main time_service..');
END;
show errors
SET serveroutput ON
exec dbms_output.put_line(time_service.get_local_time('94065'));
Here is demo_soap.sql:
Rem
Rem $Header: soapdemo.sql 21-may-2002.13:48:17 rpang Exp $
Rem
Rem soapdemo.sql
Rem
Rem Copyright (c) 2002, Oracle Corporation. All rights reserved.
Rem
Rem NAME
Rem soapdemo.sql - <one-line expansion of the name>
Rem
Rem DESCRIPTION
Rem A PL/SQL demo package for making SOAP RPC calls.
Rem
Rem NOTES
Rem This demo package can only be used in oracle 9ir2. It utilizes 9iR2's
Rem XDB (XMLType and HttpUriType) and 9iR1's enhancements to UTL_HTTP to
Rem make SOAP RPC calls.
Rem
Rem MODIFIED (MM/DD/YY)
Rem rpang 05/21/02 - created
Rem
Rem A PL/SQL demo package that makes a SOAP RPC calls.
Rem
CREATE OR REPLACE PACKAGE demo_soap AS
/* A type to represent a SOAP RPC request */
TYPE request IS RECORD (
method VARCHAR2(256),
namespace VARCHAR2(256),
body VARCHAR2(32767));
/* A type to represent a SOAP RPC response */
TYPE response IS RECORD (
doc xmltype);
* Create a new SOAP RPC request.
FUNCTION new_request(method IN VARCHAR2,
namespace IN VARCHAR2)
RETURN request;
* Add a simple parameter to the SOAP RPC request.
PROCEDURE add_parameter(req IN OUT NOCOPY request,
name IN VARCHAR2,
type IN VARCHAR2,
value IN VARCHAR2);
* Make the SOAP RPC call.
FUNCTION invoke(req IN OUT NOCOPY request,
url IN VARCHAR2,
action IN VARCHAR2) RETURN response;
* Retrieve the sipmle return value of the SOAP RPC call.
FUNCTION get_return_value(resp IN OUT NOCOPY response,
name IN VARCHAR2,
namespace IN VARCHAR2) RETURN VARCHAR2;
END;
show errors
CREATE OR REPLACE PACKAGE BODY demo_soap AS
FUNCTION new_request(method IN VARCHAR2,
namespace IN VARCHAR2)
RETURN request AS
req request;
BEGIN
req.method := method;
req.namespace := namespace;
RETURN req;
END;
PROCEDURE add_parameter(req IN OUT NOCOPY request,
name IN VARCHAR2,
type IN VARCHAR2,
value IN VARCHAR2) AS
BEGIN
req.body := req.body ||
'<'||name||' xsi:type="'||type||'">'||value||'</'||name||'>';
END;
PROCEDURE generate_envelope(req IN OUT NOCOPY request,
env IN OUT NOCOPY VARCHAR2) AS
BEGIN
env := '<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body><'||req.method||' '||req.namespace||'
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'||
req.body||'</'||req.method||'></SOAP-ENV:Body></SOAP-ENV:Envelope>';
END;
PROCEDURE show_envelope(env IN VARCHAR2) AS
i pls_integer;
len pls_integer;
BEGIN
i := 1; len := length(env);
WHILE (i <= len) LOOP
dbms_output.put_line(substr(env, i, 60));
i := i + 60;
END LOOP;
END;
PROCEDURE check_fault(resp IN OUT NOCOPY response) AS
fault_node xmltype;
fault_code VARCHAR2(256);
fault_string VARCHAR2(32767);
BEGIN
fault_node := resp.doc.extract('/soap:Fault',
'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/');
IF (fault_node IS NOT NULL) THEN
fault_code := fault_node.extract('/soap:Fault/faultcode/child::text()',
'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/').getstringval();
fault_string := fault_node.extract('/soap:Fault/faultstring/child::text()',
'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/').getstringval();
raise_application_error(-20000, fault_code || ' - ' || fault_string);
END IF;
END;
FUNCTION invoke(req IN OUT NOCOPY request,
url IN VARCHAR2,
action IN VARCHAR2) RETURN response AS
env VARCHAR2(32767);
http_req utl_http.req;
http_resp utl_http.resp;
resp response;
BEGIN
generate_envelope(req, env);
-- show_envelope(env);
http_req := utl_http.begin_request(url, 'POST','HTTP/1.0');
utl_http.set_header(http_req, 'Content-Type', 'text/xml');
utl_http.set_header(http_req, 'Content-Length', length(env));
utl_http.set_header(http_req, 'SOAPAction', action);
utl_http.write_text(http_req, env);
http_resp := utl_http.get_response(http_req);
utl_http.read_text(http_resp, env);
utl_http.end_response(http_resp);
resp.doc := xmltype.createxml(env);
resp.doc := resp.doc.extract('/soap:Envelope/soap:Body/child::node()',
'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"');
-- show_envelope(resp.doc.getstringval());
check_fault(resp);
RETURN resp;
END;
FUNCTION get_return_value(resp IN OUT NOCOPY response,
name IN VARCHAR2,
namespace IN VARCHAR2) RETURN VARCHAR2 AS
BEGIN
RETURN resp.doc.extract('//'||name||'/child::text()',
namespace).getstringval();
END;
END;
show errors -
Consuming Sharepoint webservice from Abap
Hi, I have a need to access a Sharepoint database from SAP. I am using the search.aspx webservice that sharepoint offers, or at least trying to. I set up an abap proxy from the WSDL that sharepoint supplied (which was not the best WSDL). From my ABAP I need to call the sharepoint service and I am having a little difficulty getting a result back.
Here is the ABAP code I have so far:
DATA: gr_query TYPE REF TO zgms_cycletimeco_query_service,
gs_input TYPE zgms_cycletimequery_soap_in,
gs_output TYPE zgms_cycletimequery_soap_out.
DATA: oref TYPE REF TO cx_root,
text TYPE string,
oref2 TYPE REF TO cx_root,
text2 TYPE string.
CREATE OBJECT gr_query.
CONCATENATE 'get_text( ).
ENDTRY.
I am trying to retrieve the record that contains HE2009-0624-084648 with no luck.
The error message I get says no results found.
Does anyone know what I am doing wrong? Do I need to specify the field in sharepoint that contains this data?
Thanks in advance,
RenéThanks for your reply. I actually tested today in SE80 on the proxy, and the request was formatted as:
<n0:Query xmlns:n0="urn:Microsoft.Search" xmlns:prx="urn:sap.com:proxy:PLD:/1SAI/TAS4ADD6B94366302A825F7:700:2007/10/04">
<n0:queryXml>This is a string 6</n0:queryXml>
</n0:Query>
When I execute it, the reponse is:
- <n0:QueryResponse xmlns:n0="urn:Microsoft.Search" xmlns:prx="urn:sap.com:proxy:PLD:/1SAI/TAS4ADD6B94366302A825F7:700:2007/10/04">
<n0:QueryResult><ResponsePacket xmlns="urn:Microsoft.Search.Response"><Response domain=""><Status>ERROR_BAD_REQUEST</Status><DebugErrorMessage>Data at the root level is invalid. Line 1, position 1.</DebugErrorMessage></Response></ResponsePacket></n0:QueryResult>
</n0:QueryResponse>
I don't really know what the format would be in between the queryXml tags. If anyone knows, please help!
Thanks. -
Consuming ABAP Webservice from Android device
Dear Experts,
I am ABAP developer (limited knowledge on android) trying to connect Android device to a.SAP Webservice
Through trial and error and help from SDN and Android forums i managed to link up the ABAP webservice and android using KSOAP2 API.Its working perfectly now but only when i save the username password for SAP access in the webservice settings in transaction SICF.I need to access the service by passing the username and password values through the SOAP request header but so far my efforts have failed me.im presently using the following code to pass my auth values.
I would be grateful if you can point me in the proper direction.
String NAMESPACE = "mynamespace (works properly without auth)";
String METHOD_NAME = "mymethod (works properly without auth)";
String SOAP_ACTION = "mynamespace/mymethod (works properly without auth)";
String URL = "myURL{works properly without auth)";
SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);
Request.addProperty("Purchaseorder","4500001168");
Request.addProperty("Username", "myusername");
Request.addProperty("Password", "mypassword");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(Request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
try
androidHttpTransport.call(SOAP_ACTION, envelope);
SoapObject response = (SoapObject)envelope.bodyIn;
String testValue = response.getProperty("PoHeader").toString();
AlertDialog alertDialog = new AlertDialog.Builder(this).create();
alertDialog.setMessage(testValue);
alertDialog.show();
catch(Exception e)
e.printStackTrace();
Thanx & Best RegardsHi,
you can develop a custom Transport class wich extends the: HttpTransportSE class by authentication features.
example:
public class AuthTransportSE extends HttpTransportSE{
private String username;
private String password;
public AuthTransportSE(String url, String username, String password) {
super(url);
this.username = username;
this.password = password;
protected ServiceConnection getServiceConnection() throws IOException {
ServiceConnection midpConnection = new ServiceConnectionSE(url);
addBasicAuthentication(midpConnection);
return midpConnection;
protected void addBasicAuthentication(ServiceConnection midpConnection) throws IOException {
if (username != null && password != null) {
StringBuffer buf = new StringBuffer(username);
buf.append(':').append(password);
byte[] raw = buf.toString().getBytes();
buf.setLength(0);
buf.append("Basic ");
org.kobjects.base64.Base64.encode(raw, 0, raw.length, buf);
midpConnection.setRequestProperty("Authorization", buf.toString());
Afterwards you can initialize the Webservice with:
AuthTransportSE androidHttpTransport = new AuthTransportSE(URL, userName, pasword);
Cheers,
Dennis. -
Calling a webservice from weblogic EJB Application
Hello,
I have a webservice running on IIS server. I created a simple java client program to call the webservice and it works fine. However, when I wrapped the same java client program as a EJB Application, I am unable to call the webservice.
I get the following error:
####<Apr 3, 2007 1:59:30 AM CDT> <Info> <WebService> <CASEJBServer> <ExecuteThread: '24' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-220094> <An IOException was thrown trying to access the WSDL at the given URL.>
And
"java.io.FileNotFoundException: Response: '401: Unauthorized' for url: XXXXXX"
Could you please give some simple steps as what are the JAR Files required to be included in the Weblogic Server's classpath to call the webservice.
Thanks.To start off you need to make sure that your client api is in the classpath, either in your ejb or your ear or the server classpath.
The other concern I would have is that it seems you are just not authorized to access the URL.
- Does the WSDL require credentials? So in other words when you go to the URL are you allowed to access the WSDL without athenticating.
- How does your Impl get created?
MyServiceImpl service = new MyServiceImpl()
If you are using the empty constructor then what is the wsdl endpoint in your jar file since that is the wsdl it will use. If the endpoint is localhost/xxx/xxx then you will have issues since that means your not deployed on localhost. What url is at the endpoint? Do you have access to the url from your server?
If you are using "new MyServiceImpl(url);" then again is the wsdl locked down because in this case you will need to do somthing like http://username:[email protected]/xxx?wsdl
Hope this helps.
-Jesus -
Calling a WebService from Java Applet
Hi all,
In my application I have 3 projects:
1. server - for all the business logic.
2. view - for web app.
3. swing - for applet.
In the view project I wrote a WS, and I want to call it from my applet. So I created a WS using the Jdev (10.1.3.2) wizard in the view project (I tested it and it worked fine), and in the swing project I created a proxy for this WS, tested it and it worked fine. Then I created a JAR containing the swing project with the WS proxy classes, opened the Applet and find out that I have some classes missing, so I started adding all the relevant Jars and ended with a ~13MB JAR containing all the swing project jars that in the class path for a simple Applet.
I know that I'm missing something but I dont know what. Do I really need all those Jars. Is there a simple way to call to a WS via Applet?
This is the list of all the Jars:
activation.jar
commons-logging-api.jar
commons-logging.jar
ejb.jar
http_client.jar
jaxb-api.jar
jaxb-impl.jar
jaxen.jar
jaxr-api.jar
jaxrpc-api.jar
jazncore.jar
jdom.jar
jms.jar
jta.jar
mail.jar
mdds.jar
oc4jclient.jar
ojdl2.jar
ojmisc.jar
ojpse.jar
oraclepki.jar
orajaxr.jar
orasaaj.jar
orawsdl.jar
orawsrm.jar
osdt_cert.jar
osdt_core.jar
osdt_saml.jar
osdt_wss.jar
osdt_xmlsec.jar
relaxngDatatype.jar
saaj-api.jar
saaj-impl.jar_old
servlet.jar
wsclient.jar
wsdl.jar
wssecurity.jar
wsserver.jar
xdb.jar
xml.jar
xmlparserv2.jar
xsdlib.jar
By the way at the end of all this annoying process I got the next exception:
[failed to localize] typemapping.nested.exception.initialization(javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found)
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(BasicService.java:244)
at com.tm.view.ws.misc.runtime.WSMisc_Service_SerializerRegistry.getRegistry(WSMisc_Service_SerializerRegistry.java:26)
at com.tm.view.ws.misc.runtime.WSMisc_Service_Impl.<init>(WSMisc_Service_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryImpl.java:121)
at com.tm.view.ws.misc.WSMiscSoap12HttpPortClient.<init>(WSMiscSoap12HttpPortClient.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at client.base.connectivity.ClientRequestAgent.runWS(ClientRequestAgent.java:135)
at client.base.connectivity.ClientRequestAgent.run(ClientRequestAgent.java:44)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
ShacharTry this:
1. open the webService data controll in the Data Controls section and drag the method from the webService onto the method call activity in your task flow. This will overwrite the current method property (the one which pints to your bean, make a copy of this entry if you can't reproduce it by hand). This too will create an entry in the pageDef of the method call activity.
2. reenter (or paste) the original value in the method property, so that it again points to your bean. The entry in the pageDef will remain!
3. now in the bean method you can access the method via its binding like you access any other method from the binding:
// GET A METHOD FROM PAGEDEF AND EXECUTE IT
// get the binding container
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
// get an Action or MethodAction
OperationBinding method = bindings.getOperationBinding("YourMethodActionNAME");
if (method == null)
// handle method not found error...
// if there are parameters to set...
Map paramsMap = method.getParamsMap();
paramsMap.put("param","value") ;
// execute the method
method.execute();
List errors = method.getErrors();
if (!errors.isEmpty())
// handle errors here errors is a list of exceptions!
// no error resume normal workTimo -
How to Migrate EJB Webservice from NW 7.0 to 7.3
Hi,
We have upgraded nw portal from 7.0 to 7.31.
1.how to migrate 7.0 ejb webservice to 7.3?
2.how to test webservice in portal 7.3.
i did not find webservice perspective in nwds 7.3.
please suggest how to acheive .
Regards
SrinivasThe only way to disable access ot the camera from the lock screen is to disable the camera entirely.
Maybe you are looking for
-
How to access my security question ?
how to access my security question ?
-
Messages Mac default to sending by iMessage instead of SMS/MMS
Is there a way to set Messages on my iMac (10.10.3) to send messages to a recipient using iMassage rather than SMS/MMS? I know my recipients have iPhones, but when I open messages and want to send them a message, Messages uses their "green" text mess
-
Sarfari using memory in the extreme making the mini very sluggish
After installing Yosemite, all is good except that the mini goes sluggish with Safari running. As you see below, as soon as I quit Safari the pressure reduces to a normal level of activity and usage. Is there a fix or a solution to this problem? Mac
-
Is there a way to migrate Elements 11 (on Windows) catalogs to LightRoom 5 on Mac?
I have just converted to LightRoom on Mac and would like to migrate my Elements 11 catlaogs that exist on my PC. Can this be done?
-
Hi - Every time I run the debugger, I have to click on "Debugger / Classic Debugger" to switch to the classic, which I prefer. Is that a way for me to have it default to the Classic Debugger so I don't have to do this every time I start up a debugge