Web Service: XML Deserialization Error
Hallo experts
I call one service on the SAP Applikation server (7.1 Enhancement) and get the following error:
com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. Empty node passed to deserializer com.sap.engine.services.webservices.jaxrpc.encoding.primitive.DateTimeSD which is not acceptable.
If I use the SOAP to call the service I got the answer as following:
has no value. Is this the reason that causes this problem? If it is, how can I get the result in this case withoutrthis error. Because we get always Items from the backend that some fields were not filled.
Thanks a lot and
Nice regards!
Ping
Hi Bala,
I tried your suggestion but that did not work!
I am not trying to test that web service via WSNavigator.
Problem is my service does not come there once i deploy it.
I am a newbie to WebServices so please correct me where am I wrong in these steps:
1. I create a Deployable Proxy Project
2. Then, i create a new Client Proxy Definition
3. I enter pkg name, Proxy name, choose Local System. Then i give the WSDL location and finally press Finish.
(It has created several files including ClientAPI.jar)
4. Lastly, i chose Build EAR and deployed it.
But i cannot see my web service in that list!
Can you please help me in checking the request-response cycle for this web service.
Regards,
Dev
Similar Messages
-
ODI Invoke Web Service XML Request error.
hi,
i want to invoke a web service from ODI 10g.
i use OdıInvokeWebService in package.
in General tab. I wrote the parameters values. when i execute package
it gives error;
com.sunopsis.wsinvocation.SnpsWSInvocationException: Part does not exist:Header
at com.sunopsis.wsinvocation.client.a.d.a(d.java)
at com.sunopsis.wsinvocation.client.a.d.a(d.java)
at com.sunopsis.wsinvocation.client.a.d.b(d.java)
at com.sunopsis.wsinvocation.client.a.c.a(c.java)
at com.sunopsis.wsinvocation.client.a.c.getWebServiceRequestByOperation(c.java)
at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java)
at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.g.A(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
when i invoke from advanced button web service retrieve data.
and XML Request parameter is wrong. what is wrong about XML request?
i copied XML Request value from SoapUI.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:db="DB_SUBS_BUDGET">
<soapenv:Header>
<db:QaaWSHeader>
<!--Optional:-->
<db:sessionID xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<!--Optional:-->
<db:serializedSession xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</db:QaaWSHeader>
</soapenv:Header>
<soapenv:Body>
<db:runQueryAsAService>
<db:login>DWH_BO</db:login>
<db:password>Pass1234</db:password>
</db:runQueryAsAService>
</soapenv:Body>
</soapenv:Envelope>
thankshi again,
i solved "Part does not exist:Header" error
i changed xml request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:db="DB_SUBS_BUDGET">
<db:QaaWSHeader/>
<db:runQueryAsAService>
<db:login>DWH_BO</db:login>
<db:password>Avea1234</db:password>
</db:runQueryAsAService>
</soapenv:Envelope>
now a new error occures;
how can i pass this error?.
java.lang.Exception: org.apache.crimson.tree.XmlDocument.getXmlStandalone()Z
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.g.A(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
thanks -
Calling Web Service - XML Parse Error
Hello,
I have created Client proxy to call a Web Service. This service requires WS Header. This is my code to create the header:
concatenate
'<soap:Header>'
' <wsse:Security mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">'
' <wsse:UsernameToken Id="uuid-90128b0b"> '
' <wsse:Username>User123</wsse:Username> '
' <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordText">Pass123</wsse:Password> '
' </wsse:UsernameToken> '
' </wsse:Security> '
' </soap:Header> ' into l_string.
When I make the call, I receive the following error:
CODE SoapFaultCode:4
ERRORTEXT #XML parse error.#
If I comment out UsernameToken element, the errors says that UsernameToken is missing, once I added it, I get XML parse error.
Here is the info from trace file:
XRFC> <
XRFC> <
XRFC> INFO 09:40:16: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL <
XRFC> ->IF_SOAP_PROTOCOL~PRE_PROCESS() SOAP Session Protocol <
XRFC> preprocessed <
XRFC> <
XRFC> INFO 09:40:16: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT <
XRFC> ->IF_SOAP_TRANSPORT_BINDING~SEND() Try to send message ( DEST = <
XRFC> CCTEST_AUC ,PATH = ,URL = ,SOAP Action = "runTransaction" ) <
XRFC> <
XRFC> INFO 09:40:16: SOAP Transport Binding CL_SOAP_HTTP_TPBND_ROOT <
XRFC> ->IF_SOAP_TRANSPORT_BINDING~SEND() Message sent <
XRFC> <
XRFC> INFO 09:40:16: SOAP Transport binding CL_SOAP_HTTP_TPBND_ROOT <
XRFC> ->IF_SOAP_TRANSPORT_BINDING~RECEIVE() Try to receive message <
XRFC> <
XRFC> INFO 09:40:16: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->HANDLE <
XRFC> STATUSCODE() Received return code 500 ( Internal Server Error ) <
XRFC> <
XRFC> ERROR 09:40:16: SOAP Message CL_SOAP_MESSAGE->IF_SOAP_MESSAGE <
XRFC> PART~INITFOR_DESERIALIZE() SOAP Fault Exception caught: :
XML <
XRFC> parse error.
<
XRFC> <
Does anyone know what could be the problem?
Thanks,
AlexI was able to fix the issue last night, it was caused by preparing WS header incorrectly. Originally, I did not use wsse prefix, and this was issue number 1. Once I added the prefix, I thought that the following code is incorrect because it was only retreiving 1 elements - UsernameToken.
xml_root = xml_document->get_root_element( ).
xml_element ?= xml_root->get_first_child( ).
* add header element by element to SOAP header
while not xml_element is initial.
name = xml_element->get_name( ).
namespace = xml_element->get_namespace_uri( ).
ws_header->set_request_header(
name = name
namespace = namespace
dom = xml_element ).
xml_element ?= xml_element->get_next( ).
endwhile.
So, I added to logic to get and then set all childeren, and this was the mistake. This is what caused "XML Parse Error". UsernameToken had already all info with user name and password. Once I removed the extra logic to get all 4 elements, the client proxy began working.
Regards,
Alex -
Web Service: XMLUnmarshalException: XML Deserialization Error
Hi,
I am trying to use a complex web structure in web service.
I am simply trying to display some data from that web service in my view.
I am getting the foll error:
<b>
Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element [http://www.siebel.com/xml/Account Interface]<Account> is required in <SiebelMessage> but can not be found.[Ljava.lang.StackTraceElement;@2fe4e7
</b>
I have gone thru most of the posts but they all have XMLMarshalException and not XMLUnmarshalException.
Any inputs please?
Regards,
DevHi Bala,
I tried your suggestion but that did not work!
I am not trying to test that web service via WSNavigator.
Problem is my service does not come there once i deploy it.
I am a newbie to WebServices so please correct me where am I wrong in these steps:
1. I create a Deployable Proxy Project
2. Then, i create a new Client Proxy Definition
3. I enter pkg name, Proxy name, choose Local System. Then i give the WSDL location and finally press Finish.
(It has created several files including ClientAPI.jar)
4. Lastly, i chose Build EAR and deployed it.
But i cannot see my web service in that list!
Can you please help me in checking the request-response cycle for this web service.
Regards,
Dev -
Error while inluding xsd:whiteSpace in web-services.xml
Hi,
i am trying to allow the xml attribute values to preserve the whiteSpace characters(tabs, line feeds, carriage returns etc...)
In web-services.xml i am adding
<xsd:complexContent>
<xsd:restriction base="xsd:string">
<xsd:attribute name="address">
<xsd:whiteSpace value="preserve"/>
</xsd:attribute>
</xsd:restriction>
</xsd:complexContent>
But i am getting a run time exception as
[weblogic.xml.schema.model.parser.XSDParseException: invalid element "xsd:whiteSpace" AT line 0, column 0: <['http://www.w3.org/2001/XMLSchema']:xsd:whiteSpace value="preserve">]
am i doing in a correct way?
Please suggest me.
Thanks
subba.weblogic server doesn't support some of the xsd features.
WebLogic Server does not support the following XML Schema features:
? Complex data type inheritance by restriction
? Union simple data types
? References to named model groups
? Nested content models in a single complex type
? Redefinition of declarations
? Identity constraints (key, keyref, unique)
? Nested XSD model groups with other content models at the same level.
There cannot be a modelgroup (say sequence) that contains another nested modelgroup (say choice), and a content element (say element). So, if a nested modelgroup is required, make sure that it contains only another model group and no other content element.
? Wildcards
but i didn't understand why its giving error for whiteSpace.
Can someone reply to this please,, its urgent for me.
thanks
subba. -
XML Deserialization error while consuming Enterprise service in wd java..
Hello,
I am trying to build 2 webdynpro java webdynpro applications which consumes enterprise service for purchase order and another application for Busines partner.
While i was able to successfully consume the PO service in webdynpro java and get the desired output for PO..i get XML Deserialization error while running appliation for Business Partner..
These are the details/steps i followed for the Business Partner application:
1. After creating the model using the enterprise service, i created a service controller from the model to the component controller..
2. Out of many inputs/output attributes during mapping from model to component controller. i further mapped the context from CC to ViewC.
3. In the wdDoInit() method, i added the follwing code:
BPCreate model1 = new BPCreate();
Request_BusinessPartnerERPCreateRequestConfirmation_In RequestC = new Request_BusinessPartnerERPCreateRequestConfirmation_In(model1);
BPERPCrteReqMsg_S CreateMessage = new BPERPCrteReqMsg_S(model1);
BPERPCrteReq_SBP Cpartner = new BPERPCrteReq_SBP(model1);
String Category = new String();
String lf = new String();
Cpartner.setInternalID(new String());
Cpartner.setNumberRangeIntervalBusinessPartnerGroupCode(new String());
Cpartner.setLifeCycleStatusCode(lf);
Cpartner.setCategoryCode(Category);
CreateMessage.setBusinessPartner(Cpartner);
RequestC.setBusinessPartnerERPCreateRequestMessage_Sync(CreateMessage);
wdContext.nodeBusinessPartnerERPCreateRequestMessage_Sync().bind(CreateMessage);
4. When i comment this code and run the application, the aplication comes up but the input fields are non-editable..
5. If i place this code in wdDoInit() method, i get the Deserialization error..
Any idea about why this error occurs and which areas in the application can lead to these errors?
I checked that the service runs fine in soamanager.
Thanks, JVRHi Kishore,
This error is majorly because while executing this Webdynpro application you are not entering all the mandatory fileds of WS.
Please try to execute this WS from WS-Navigator, check which fileds are mandatory and then
appropriately instantiate it in wdDoInit and pass all the fields required.
Regards,
Vaibhav Modi. -
Problem with XML Deserialization Error
Hi! when I test my webservice, I take the following error: Deserializing fails. Nested message: XML Deserialization Error. Result class com.sap.gram.SelRec.SelRec_CompGenModel does not have property of type java.lang.String. It is required to load XML..
I don´t understand why occur this!! CiEntId is a string with the property of a primaryKey
What can I do??
Thanks
RoseHi Rosa,
I've got the same error message, but in another scenario. I'm testing a XI Web Service, with a defined WSDL. To test it I'm using WS Navigator (http://host:port/wsnavigator/enterwsdl.html). Although all the types I'm returning are on the WSLD definition, the dumb WS Navigator fires the "XML Deserialization Error", and says that a type is not defined in the wsdl (but the type is there, and other test tools are working fine with it!).
roberti -
Hi,
I'm workin on a prototyp based on the netweaver developer studio preview. after i've steped to the several tutorial for webservices und webdynpro.
I've implemented a ejb/webservice combination for selecting a insurance contract from our databases based on existing java-classes to use the webservice as a model in the webdynpro-app. So fare everything worked fine.
Know I've made a little change and filled the contract with aditional information about the customer to this contract (i didn't modified the class if just filled e member of the contract which was null bevor). After deploying the webservice i got the following error message:
Service call exception; nested exception is: com.sap.engine.services.werservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element [urn:de.deutscherring.base]<nummer> is required in <ns16:personVn> but can not be found.
When i test the webservice i get the same error.
I've searched a the classes which a direct or indirect owned by the Person-Object and found only on member named nummer but it's an int, which can't cause trouble with deserialization.
Are anyone their wo can help me?
Thanks in advance.
OliverHi Oliver,
Check what is the request and the response. Where does the deserialization fail - on the client or on the server side?
<i>You can increase the severity of your web service location via the Visual Admin and Log Configurator Service to debug in order to log also the request and response messages (Location: com.sap.engine.services.webservices.runtime...)</i>
If the response is fine, then maybe your WS Client Proxy needs to be regenerated in order to reflect your change.
Otherwise, please create a CSN message.
Best regards,
Alexander -
XmlUnmarshalException: XML Deserialization Error
Hi, I have generated a Deployable WebService Proxy of a external WebService from the Provider ESRI (http://arcweb.esri.com/arcwebonline/index.htm) with SAP Dev Studio SP9 and deployed to the WAS 6.40 SP9.
Within a Servlet i called first the WebService Authentication to get a Token which works fine and then the WebService AddressFinder.findAddress() to get the Datas but this Call throw a Exception
==> "Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element []<errorCode> is required in <soap:Body> but can not be found."
The required element <errorCode> descriped in the WDSL Definition is nillable="true" so not required!
- <xsd:complexType name="LocationInfo">
- <xsd:sequence>
<xsd:element name="matchType" nillable="true" type="xsd:string" />
<xsd:element name="candidates" nillable="true" type="ns12:ArrayOfLocation" />
<xsd:element name="hasMore" type="xsd:boolean" />
<b><xsd:element name="errorCode" nillable="true"</b> type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
I checked also the SOAP response on the J2EE which was ok:
Message : HTTP/1.1 200 OK
Server: Sun-ONE-Application-Server/7.0
Date: Wed, 12 Jan 2005 10:11:31 GMT
Content-length: 1534
Content-type: text/xml; charset=UTF-8
Optimizable: true
Connection: close
<?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/' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:ns5='http://www.themindelectric.com/package/com.esri.is.services.common.v2/' xmlns:ns6='http://www.themindelectric.com/package/com.esri.is.services.common.v2.geom/'><soap:Body><n:findAddressResponse xmlns:n='http://arcweb.esri.com/v2'><Result href='#id0'></Result></n:findAddressResponse><id0 id='id0' soapenc:root='0' xsi:type='ns5:LocationInfo'><matchType xsi:type='xsd:string'>EXACT</matchType><candidates href='#id1'></candidates><hasMore xsi:type='xsd:boolean'>false</hasMore></id0><id1 id='id1' soapenc:root='0' xsi:type='soapenc:Array' soapenc:arrayType='ns5:Location[1]'><i href='#id2'></i></id1><id2 id='id2' soapenc:root='0' xsi:type='ns5:Location'><point href='#id3'></point><description1 xsi:type='xsd:string'>Ammann Strasse 2, 3074, Muri Bei Bern</description1><score xsi:type='xsd:double'>0.0</score><matchType xsi:type='xsd:string'>100</matchType></id2><id3 id='id3' soapenc:root='0' xsi:type='ns6:Point'><x xsi:type='xsd:double'>7.496564</x><y xsi:type='xsd:double'>46.926945</y><coordinateSystem href='#id4'></coordinateSystem></id3><id4 id='id4' soapenc:root='0' xsi:type='ns6:CoordinateSystem'><projection xsi:type='xsd:string'>4326</projection></id4></soap:Body></soap:Envelope>
Is there anything wrong, has anybody a solution?
Thanks VinceHi Vilish,
I have a Web Dynpro application that uses a Web Service model. The Web Service is located on a remote non-SAP server, and i generated proxies based on its WSDL.
The error occurs at this procedure,
someElementObj.modelObject.execute();
This procedure is to send a request with parameters to a Web method, and then retrieving data from the response XML before storing the data in the model context. So, I suspect this happens during retrieving process.
Thanks,
Teecheu -
XmlUnmarshalException: XML Deserialization Error Please Help!!!
Hi All,
I am consuming the standard webservice
Name: /SAPAPO/SDM_PARCRTRC
I am getting the following error on execution of the web service:
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element []<ScheduleLine> is required in <NameSpecification> but can not be found.
Please help me with this problem.
Thanks in Advance.Hi All,
Thanks for your replies.
They were helpful but this what I did that solved the problem
I used the following code to set the required parameters
item.getOriginalBean().setScheduleLine(new ScheduleLineInner[] {scheduleLine.getOriginalBean()});
instead of
item.addScheduleLine(scheduleLine);
Similarly all the parameters were set using the orginalBean
Now it is working perfectly fine....
Thanks a lot..
Setu -
How to generate param-prefix in web-services.xml
Hello I am using source2wsdd to generate my WSDL and my web-services.xml. For sake
of interoperability I would like to have the type param-prefix in the web-services.xml
file. From my Bean class what kind of javadoc comments would help me generate
the type param-prefix ?
I also would like the location="header" in the param list.
Thanks,
Aswin.
<param xmlns:param-prefix="http://tempuri.org/"
type="param-prefix:SOAPCredentials"
location="header"
class-name="com.xyz.webservices.SOAPCredentials"
name="SOAPCredentials"
style="in">
</param>
<return-param xmlns:param-prefix="http://tempuri.org/"
type="param-prefix:GetFileProfileInformationResponse"
class-name="com.xyz.webservices.GetFileProfileInformationResponse"
name="parameters">
</return-param>
</params>Please try this:
* @wlws:part p_SOAPAuthToken location="header"
* type="typeNS:p_SOAPAuthToken"
* class-name="com.xyz.webservices.SOAPAuthToken"
* style="inout"
* xmlns:typeNS=http://namespace/of/the/type
* @wlws:part p_SOAPCredentials location="header"
* type="typeNS:p_SOAPCredentials"
* class-name="com.xyz.webservices.SOAPCredentials"
* style="in"
* xmlns:typeNS=http://namespace/of/the/type
* @ejbgen:remote-method
public void login(SOAPAuthToken p_SOAPAuthToken,
SOAPCredentials p_SOAPCredentials)
I did not try this one out. So i can only hope that it works.
Regards,
-manoj
http://manojc.com
"Aswin Dinakar" <[email protected]> wrote in message
news:40aeeb5d$1@mktnews1...
>
I tried this
* @wlws:part p_SOAPAuthToken location="header"
* @wlws:part p_SOAPAuthToken type="param-prefix:p_SOAPAuthToken"
* @wlws:part p_SOAPAuthTokenclass-name="com.xyz.webservices.SOAPAuthToken"
* @wlws:part p_SOAPAuthToken style="inout"
* @wlws:part p_SOAPCredentials location="header"
* @wlws:part p_SOAPCredentials type="param-prefix:p_SOAPCredentials"
* @wlws:part p_SOAPCredentialsclass-name="com.xyz.webservices.SOAPCredentials"
* @wlws:part p_SOAPCredentials style="in"
* @ejbgen:remote-method
public void login(SOAPAuthToken p_SOAPAuthToken,
SOAPCredentials p_SOAPCredentials)
and I got the following error -
[source2wsdd] source2wsdd: In doclet classweblogic.webservice.tools.ddgen.Servi
ceGen, method start has thrown an exceptionjava.lang.reflect.InvocationTargetE
xception
[source2wsdd] weblogic.xml.stream.XMLStreamException: Attribute QNamevalue "par
am-prefix:p_SOAPAuthToken" does not map to a prefix that is in scope
[source2wsdd] atweblogic.webservice.dd.NSAttribute.getValueAsXMLName(NSAttrib
ute.java:45)
[source2wsdd] atweblogic.webservice.dd.DDLoader.processParamElement(DDLoader.
java:1252)
"manoj cheenath" <[email protected]> wrote:
Check out this example:
http://manojc.com/?sample3
You can find more details regarding the tags here:
http://manojc.com/tutorial/sample3/source2wsdd.html
Regards,
-manoj
http://manojc.com
"Aswin D" <[email protected]> wrote in message
news:[email protected]...
Hello I am using source2wsdd to generate my WSDL and my
web-services.xml.
For sake
of interoperability I would like to have the type param-prefix inthe
web-services.xml
file. From my Bean class what kind of javadoc comments would help megenerate
the type param-prefix ?
I also would like the location="header" in the param list.
Thanks,
Aswin.
<param xmlns:param-prefix="http://tempuri.org/"
type="param-prefix:SOAPCredentials"
location="header"
class-name="com.xyz.webservices.SOAPCredentials"
name="SOAPCredentials"
style="in">
</param>
<return-param xmlns:param-prefix="http://tempuri.org/"
type="param-prefix:GetFileProfileInformationResponse"
class-name="com.xyz.webservices.GetFileProfileInformationResponse"
name="parameters">
</return-param>
</params> -
What web service & xml will be used for deleting the packged epub/pdf file from Admin Console
What web service & xml will be used for deleting the packged epub/pdf file from Admin Console?
I am able to delete the files from Admin console directy but not able to get which web service is calling on deleting the file from admin console:
MangalHi Jim,
I tired following web service and xml to delete the packaged ebook but it is giving me error instead of response:
Web Service & XML
http://myserver_url/admin/ManageResourceKey
<request action="delete" auth="builtin" xmlns="http://ns.adobe.com/adept">
<nonce>" . $nonce . "</nonce>
<expiration>'. $expiration .'</expiration>
<resourceKey>
<resource>resource_id</resource>
<resourceItem>1</resourceItem>
</resourceKey>
</request>
Error Message
<error xmlns="http://ns.adobe.com/adept"
data="E_ADEPT_DATABASE http://myserver_url/admin/ManageResourceKey
Cannot%20delete%20or%20update%20a%20parent%20row:%20a%20foreign%20key%20constraint%20fails %20(`adept`.`distributionrights`,%20CONSTRAINT%20`distributionrights_ibfk_2`%20FOREIGN%20K EY%20(`resourceid`)%20REFERENCES%20`resourcekey`%20(`resourceid`))"/>
Magal Varshney -
Web-services.xml for EJB component and SOAP Message Handler Chain
I have used the following example for my own web service with EJB component and SOAP
Message Handler Chain:
http://e-docs.bea.com/wls/docs70/webServices/dd.html#1058208
I have a deployment error:
javax.naming.NameNotFoundException: Unable to resolve 'app/ejb/DocumentService.j
ar#DocumentService/home' Resolved: 'app/ejb' Unresolved:'DocumentService.jar#Doc
umentService' ; remaining name 'DocumentService.jar#DocumentService/home'
In attachement is the ear file.
Is there a problem in web-services.xml?
Thanks
[ws_dox_sdi.ear]It works. Thanks,
Ioana
"Neal Yin" <[email protected]> wrote:
The error means your EJB is not deployed.
Adding a EJB module to your application.xml file of the ear should fixe
it.
<application>
<display-name />
<module>
<web>
<web-uri>dox_sdi.war</web-uri>
</web>
</module>
<module>
<ejb>DocumentService.jar</ejb>
</module>
</application>
"Ioana Meissner" <[email protected]> wrote in message
news:3cf640cc$[email protected]..
I have used the following example for my own web service with EJBcomponent and SOAP
Message Handler Chain:
http://e-docs.bea.com/wls/docs70/webServices/dd.html#1058208
I have a deployment error:
javax.naming.NameNotFoundException: Unable to resolve'app/ejb/DocumentService.j
ar#DocumentService/home' Resolved: 'app/ejb'Unresolved:'DocumentService.jar#Doc
umentService' ; remaining name 'DocumentService.jar#DocumentService/home'
In attachement is the ear file.
Is there a problem in web-services.xml?
Thanks -
Updating the web-services.xml for WS-Security
If I wanted to change my webservice from encryption of both the request and response to just encryption of the request how do I manually change the web-services.xml file ??? Do I have to un-archive the ear and re-archive the ear everytime I want to make security changes to the web-services.xml file ?
It works. Thanks,
Ioana
"Neal Yin" <[email protected]> wrote:
The error means your EJB is not deployed.
Adding a EJB module to your application.xml file of the ear should fixe
it.
<application>
<display-name />
<module>
<web>
<web-uri>dox_sdi.war</web-uri>
</web>
</module>
<module>
<ejb>DocumentService.jar</ejb>
</module>
</application>
"Ioana Meissner" <[email protected]> wrote in message
news:3cf640cc$[email protected]..
I have used the following example for my own web service with EJBcomponent and SOAP
Message Handler Chain:
http://e-docs.bea.com/wls/docs70/webServices/dd.html#1058208
I have a deployment error:
javax.naming.NameNotFoundException: Unable to resolve'app/ejb/DocumentService.j
ar#DocumentService/home' Resolved: 'app/ejb'Unresolved:'DocumentService.jar#Doc
umentService' ; remaining name 'DocumentService.jar#DocumentService/home'
In attachement is the ear file.
Is there a problem in web-services.xml?
Thanks -
Web-services.xml handler chain
Hi All,
My question is this. I use servicegen ant task to generate the web-services.xml
file,
then I open the .ear file using winzip and edit the web-services.xml file to include
the handler-chain information. I have included the following information :
<handler-chains>
<handler-chain name="myChain">
<handler class-name="com.whatever.core.sec.iec.ejb.IECSOAPHandler">
<init-params>
<init-param name="logDirectory" value="C:/temp" />
<init-param name="severityLevel" value="verbose" />
</init-params>
</handler>
</handler-chain>
</handler-chains>
and then I include the following in the operation tag:
<operation method="batchResponseToPSS([B)" component="ejbcomp0" name="batchResponseToPSS"
handler-chain="myChain">
and the also following
<operation method="onlineResponseToPSS([B)" component="ejbcomp0" name="onlineResponseToPSS"
handler-chain="myChain">
Without the handler-chains element my app works fine.
My whole web-sercvices.xml is located at following location:
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=3921&utag=
Any insight will be appreciated.
Thanks
---Radhe
I am still not clear what error you are getting.
1. Are you saying that the handler is not getting
called?
2. or you are not able to invoke the web service
at all?
If it is 1 check the web-service.xml file of the ear
deployed. Make sure that your change is not overwritten
by servicegen.
If it is 2 then check the URL of the web service in
web-service.xml file and use a browser to get to
that URL.
Regards,
-manoj
http://manojc.com
"Radhe" <[email protected]> wrote in message
news:[email protected]...
>
Manoj,
Thanks for your reply. When I bring up the WLS, from the messages on theconsole,
it comes-up pretty cleanly. Theare are no error messages.
I looked into log files and their is nothing. This has surprised me.
I worked with some of my friends and they are clueless. I never thoughtto just
read SOAP Headers, that I have to go through so much pain.
Also part of my web-services.xml file is generated through servicegen,then I
crack open the .ear file strip the web-services.xml file, edit it and putit back.
>
IF there is some error I would have fixed it.
Does handler-chains in web-services.xml work, or it is some fiction, BEAmade
up. I am clueless where I am screwing it up.
Thanks
---Radhe
"manoj cheenath" <[email protected]> wrote:
Can you please post the error message?
This example may also help you:
http://www.manojc.com/?sample4
Regards,
-manoj
http://manojc.com
"Radhe" <[email protected]> wrote in message
news:[email protected]...
Hi All,
My question is this. I use servicegen ant task to generate theweb-services.xml
file,
then I open the .ear file using winzip and edit the web-services.xmlfile
to include
the handler-chain information. I have included the following
information
<handler-chains>
<handler-chain name="myChain">
<handler
class-name="com.whatever.core.sec.iec.ejb.IECSOAPHandler">
<init-params>
<init-param name="logDirectory" value="C:/temp" />
<init-param name="severityLevel" value="verbose" />
</init-params>
</handler>
</handler-chain>
</handler-chains>
and then I include the following in the operation tag:
<operation method="batchResponseToPSS([B)" component="ejbcomp0"
name="batchResponseToPSS"> >> handler-chain="myChain">> >>> >> and the also following> >>> >> <operation method="onlineResponseToPSS([B)" component="ejbcomp0"> >name="onlineResponseToPSS"> >> handler-chain="myChain">> >>> >> Without the handler-chains element my app works fine.> >>> >> My whole web-sercvices.xml is located at following location:> >>> >>>>http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=3921&utag=> >>> >>> >> Any insight will be appreciated.> >>> >> Thanks> >> ---Radhe> >> >>
Maybe you are looking for
-
I have to install Photoshop CS4 extended on a new computer from a disk because my old computer had a hard drive crash. There is no serial number on the back of the case. How can I obtain a usable serial number?
-
I tunes will not sync voice memos off of Iphone in yosemite
I just updated my macbookpro with the new Yosemite update. However, It won't let me sync voice memos off of my phone! I tried the same thing with my music library and I can only add to the iphone. It will sync music and voice memos on but not off. Ph
-
Tagging in elements organizer 12
In Elements 8 organizer there were choices of the way to display the tags that were available for use. One of these methods was the "cloud" view. It was an alphabetical listing of the tags with multiple tags on a line and with the font size of the
-
OT: Photoshop CC + Lightroom 5 + 20 GB storage for US$9.99 a month
Hi all, Sorry for the plug, but I am trying to make sure that this offer which is available until December 02 doesn't pass you by. Details at https://creative.adobe.com/plans/offer/photoshop+lightroom?sdid=KIHZM Thanks, Preran
-
What is the Length of a Field in a Table Control?
Hi, I have a small question. I want to know, What could be the Maximum length that can be assigned to a field while creating a Table Control? Any help would be highly appreciated. Thanks in advance, Exertive.