Hi,
I've imported the XSD Schema with xjc tool into my Java project to communicate with WebEx API.
I'm trying to create a meeting with the following XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<messageType xmlns="http://www.webex.com/schemas/2002/06/service" xmlns:ns2="http://www.webex.com/schemas/2002/06/common" xmlns:ns4="http://www.webex.com/schemas/2002/06/service/user" xmlns:ns3="http://www.webex.com/schemas/2002/06/service/attendee" xmlns:ns6="http://www.webex.com/schemas/2002/06/service/history" xmlns:ns20="http://www.webex.com/schemas/2002/06/service/eventlog" xmlns:ns5="http://www.webex.com/schemas/2002/06/service/event" xmlns:ns8="http://www.webex.com/schemas/2002/06/service/ep" xmlns:ns7="http://www.webex.com/schemas/2002/06/service/meetingtype" xmlns:ns13="http://www.webex.com/schemas/2002/06/service/sales" xmlns:ns9="http://www.webex.com/schemas/2002/06/service/site" xmlns:ns12="http://www.webex.com/schemas/2002/06/service/proxy" xmlns:ns23="http://www.webex.com/schemas/2002/06/service/creditcard" xmlns:ns11="http://www.webex.com/schemas/2002/06/service/supportsession" xmlns:ns22="http://www.webex.com/schemas/2002/06/service/meeting/auo" xmlns:ns10="http://www.webex.com/schemas/2002/06/service/aahost" xmlns:ns21="http://www.webex.com/schemas/2002/06/service/meeting" xmlns:ns17="http://www.webex.com/schemas/2002/06/service/trainingsessionqti" xmlns:ns16="http://www.webex.com/schemas/2002/06/service/session" xmlns:ns15="http://www.webex.com/schemas/2002/06/service/trainingsession" xmlns:ns14="http://www.webex.com/schemas/2002/06/service/mywebexuser" xmlns:ns19="http://www.webex.com/schemas/2002/06/service/training/scorm" xmlns:ns18="http://www.webex.com/schemas/2002/06/service/trainingsessionqtiasi">
<header>
<securityContext>
<ns2:webExID>john@doe.com</ns2:webExID>
<ns2:password>MegaBoga@123</ns2:password>
<ns2:siteID>123546</ns2:siteID>
<ns2:partnerID>sup3rPartner!</ns2:partnerID>
</securityContext>
</header>
<body>
<bodyContent xsi:type="ns21:createMeeting" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns21:metaData>
<ns21:confName>A new conference</ns21:confName>
<ns21:meetingType>1</ns21:meetingType>
</ns21:metaData>
<ns21:participants>
<ns21:attendees>
<ns21:attendee>
<ns3:person>
<ns2:name>marcelo.rodrigo</ns2:name>
<ns2:email>marcelo.rodrigo@email.com</ns2:email>
</ns3:person>
</ns21:attendee>
<ns21:attendee>
<ns3:person>
<ns2:name>sabrina.boing</ns2:name>
<ns2:email>sabrina.boing@temail</ns2:email>
</ns3:person>
</ns21:attendee>
</ns21:attendees>
</ns21:participants>
<ns21:enableOptions>
<ns21:chat>true</ns21:chat>
<ns21:audioVideo>true</ns21:audioVideo>
</ns21:enableOptions>
</bodyContent>
</body>
</messageType>
But I'm getting that as a response:
validation: unable to instantiate com.webex.xmlapi.service.binding.CreateMeeting; java.lang.ClassNotFoundException: com.webex.xmlapi.service.binding.CreateMeeting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answered on mailing list
The WebEx XML service ignores custom namespace declarations, as in ns21. The meeting service namespace is defined in the schema as meet, so meet:createMeeting would have worked instead of ns21:createMeeting. Most of our examples will use the full xsi:type in Ryan’s earlier example, java:com.webex.service.binding.meeting.CreateMeeting, which is also valid. The shortened meeting.CreateMeeting would also work.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.