Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM Object

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Brian Stechly <bstechly AT disk.com>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] XOM Object
  • Date: Tue, 5 Nov 2013 12:44:39 -0600

Update.. since I couldn't pull the sObject children by name I just did this
workaround:


Element resSObject =
aNotification.getFirstChildElement("sObject","http://soap.sforce.com/2005/09/outbound";);
Elements sObjectChildren =
resSObject.getChildElements();
for(int
child = 0; child < sObjectChildren.size(); child++){

if(sObjectChildren.get(child).getLocalName().equals("Id")) {
sOId = sObjectChildren.get(child).getValue(); }

if(sObjectChildren.get(child).getLocalName().equals("CampaignId")) {
sOCampaignId = sObjectChildren.get(child).getValue(); }

if(sObjectChildren.get(child).getLocalName().equals("School_Name__c")) {
sOSchool = sObjectChildren.get(child).getValue(); }

if(sObjectChildren.get(child).getLocalName().equals("SOAP_First_Name__c")) {
sOFname = sObjectChildren.get(child).getValue(); }

if(sObjectChildren.get(child).getLocalName().equals("SOAP_Last_Name__c")) {
sOLname = sObjectChildren.get(child).getValue(); }

if(sObjectChildren.get(child).getLocalName().equals("SOAP_Address__c")) {
sOStreet = sObjectChildren.get(child).getValue(); }

if(sObjectChildren.get(child).getLocalName().equals("SOAP_City__c")) {
sOCity = sObjectChildren.get(child).getValue(); }

if(sObjectChildren.get(child).getLocalName().equals("SOAP_Postal_Code__c")) {
sOZip = sObjectChildren.get(child).getValue(); }

if(sObjectChildren.get(child).getLocalName().equals("SOAP_State__c")) {
sOState = sObjectChildren.get(child).getValue(); }

if(sObjectChildren.get(child).getLocalName().equals("SOAP_Country__c")) {
sOCountry = sObjectChildren.get(child).getValue(); }

if(sObjectChildren.get(child).getLocalName().equals("Status")) {
sOStatus = sObjectChildren.get(child).getValue(); }
}

Thanks
Brian


-----Original Message-----
From: xom-interest-bounces AT lists.ibiblio.org
[mailto:xom-interest-bounces AT lists.ibiblio.org] On Behalf Of Elliotte Rusty
Harold
Sent: Monday, November 04, 2013 2:45 PM
To: XOM API for Processing XML with Java
Subject: Re: [XOM-interest] XOM Object

On Mon, Nov 4, 2013 at 1:17 PM, Brian Stechly <bstechly AT disk.com> wrote:

> Exception being thrown is:
>
> Server sent invalid output without the expected content.
> java.lang.NullPointerException
>

That exception doesn't look like it's coming from XOM; or if it is coming
from XOM it's getting wrapped in some connection from the client to the
server or vice versa first. Can you cut this down to a self-contained
program that parses the problematic element as a string literal?

--
Elliotte Rusty Harold
elharo AT ibiblio.org
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest




Archive powered by MHonArc 2.6.24.

Top of Page