The Artima Developer Community
Sponsored Link

Web Services Forum
Problem in inserting record in Siebel on demand's object thru web service

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Yashavant Bhalekar

Posts: 1
Nickname: yashavant
Registered: Feb, 2009

Problem in inserting record in Siebel on demand's object thru web service Posted: Feb 26, 2009 2:57 AM
Reply to this message Reply
Advertisement
I have download the ‘Lead.wsdl’ file from my SOD account.
With help of axis2 framework, I have converted it into java stub files.
Now I am writing a client to insert the record into Lead objects, but I am getting following exception:

Exception:
org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col {unknown-source}]: [1,50]
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java :90)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisO peration.java:353)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.j ava:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOper ation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at crmondemand.LeadStub.LeadInsert(LeadStub.java:1327)
at crmondemand.TestClient.main(TestClient.java:71)
Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col {unknown-source}]: [1,50]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOA PModelBuilder.java:156)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPMo delBuilder.java:105)
at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:677)
at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils. java:182)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java :112)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java :88)
... 6 more
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col {unknown-source}]: [1,50]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623)
at com.ctc.wstx.sr.BasicStreamReader.startDTD(BasicStreamReader.java:2482)
at com.ctc.wstx.sr.BasicStreamReader.nextFromPrologBang(BasicStreamReader.java:239 8)
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2058)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:50 6)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161)
... 12 more


-------------------------------------------
Client Code :

// 'tempUrl : contains Siebel On Demand url with jsessionId'

LeadStub stub = new LeadStub(tempUrl);

Lead lead = new Lead();
lead.setLeadFirstName(crmondemand.LeadStub.String50.Factory.fromString("yash"," urn:crmondemand/ws/lead/10/2004"));
lead.setLeadLastName(crmondemand.LeadStub.String50.Factory.fromString("b","urn: crmondemand/ws/lead/10/2004"));

ListOfLead listOfLead = new ListOfLead();
listOfLead.setLead( new Lead[] {lead});

LeadWS_LeadInsert_Input reqDoc = new LeadWS_LeadInsert_Input();

reqDoc.setListOfLead(listOfLead);
reqDoc.setEcho("EchoInput");

stub.LeadInsert(reqDoc);
-------------------------------------------


Any pointer on this will be helpful.
Thanks in advance.

Topic: Which XML Parser or PHP library I can use...? Previous Topic   Next Topic Topic: Venkat Subramaniam to Speak on Debugging Ajax, Agile Development,

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use