kvrsfdc / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

com.sforce.ws.SoapFaultException: Element type "sobj:CloseDate" must be followed by either attribute specifications, ">" or "/>". #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
SObject so = new SObject();
so.setType("Opportunity");
so.setField("CloseDate", dateFormat.parse("1980-05-20");
so.setField("StageName", "Prospecting");
so.setField("Name", "Test Object");
connection.create(new SObject[]{ so });

What is the expected output? What do you see instead?

Expected: Opportunity object created inside salesforce.

See: Object not created, with error com.sforce.ws.SoapFaultException: Element 
type "sobj:CloseDate" must be followed by either attribute specifications, ">" 
or "/>".

What version of the product are you using? On what operating system?

Tried wsc-18,wsc-19,wsc-20 with partner wsdl and wsc-gae. Using Google App 
Engine 1.4.0 and Window XP

Please provide any additional information below.

Original issue reported on code.google.com by qi...@jbbmobile.com on 20 Dec 2010 at 7:33

GoogleCodeExporter commented 9 years ago
Can you run with the trace on and see what XML request/response looks like.

connection.getConfig().setTraceMessage(true);

Original comment by manoj.ch...@gmail.com on 20 Dec 2010 at 7:42