• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

MS Exchange web service: If the 'nillable' attribute is false in the schema, the 'xsi:nil' attribute

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi javaranchers!
I am trying to code a client to consume a MS Exchange web service. Has anyone had to implement it?

I am getting the following exception:



I tried some suggestions like the links below:
http://www.reidmiller.name/exchange_web_services_w...ceporttype_with_authentication
http://social.technet.microsoft.com/forums/en-US/e...b-0002-49ca-a931-bfef0817613c/

Do you have any clue?
Thanks in advance!
 
Ranch Hand
Posts: 649
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post your XSD and XML?
 
Victor Maehira
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!
I am sending the files required to build the ws client:

wsdl:


messages.xsd


types.xsd


Thanks!
 
Victor Maehira
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WSDL:
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
This quote contains what is needed to answer your question:

# Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: The request failed schema validation: If the 'nillable' attribute is false in the schema, the 'xsi:nil' attribute must not be present in the instance.
# at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:188)
# at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:116)
# at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
# at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
# at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
# at $Proxy42.findItem(Unknown Source)



What happens is that the client tries to call the findItem function on the web service with a null parameter.
Best wishes!
 
Victor Maehira
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Victor Maehira wrote:Hi javaranchers!
I am trying to code a client to consume a MS Exchange web service. Has anyone had to implement it?

I am getting the following exception:



I tried some suggestions like the links below:
http://www.reidmiller.name/exchange_web_services_w...ceporttype_with_authentication
http://social.technet.microsoft.com/forums/en-US/e...b-0002-49ca-a931-bfef0817613c/

Do you have any clue?
Thanks in advance!

reply
    Bookmark Topic Watch Topic
  • New Topic