I have updated the sample project. You need to put proper username,
Its marked with <Add ... >, thats why you get the errors, while validating.
> I downloaded the demo app off the Email BC page and when I build it I get a
> number of errors. Is this demo supported for particular versions on
> Netbeans? Or not supported at all? The demo is labeled "Sending email with
> attachments demo". One of the errors I get seems to day that it does not
> like sub elements within the SMTPInput element which is where it seems to
> define an email attachment.
>
> WSDL SOURCE
>
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="EmailSender"
> targetNamespace="
http://j2ee.netbeans.org/wsdl/SendEmailWithAttachments/EmailSender"
> xmlns="
http://schemas.xmlsoap.org/wsdl/"
> xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
> xmlns:email="
http://schemas.sun.com/jbi/wsdl-extensions/email/"
> xmlns:plnk="
http://docs.oasis-open.org/wsbpel/2.0/plnktype"
> xmlns:tns="
http://j2ee.netbeans.org/wsdl/SendEmailWithAttachments/EmailSender">
> <types/>
> <message name="EmailSenderInputMessage">
> <part name="from" type="xsd:string"/>
> <part name="to" type="xsd:string"/>
> <part name="subject" type="xsd:string"/>
> <part name="message" type="xsd:string"/>
> <part name="attachmentText" type="xsd:string"/>
> <part name="bcc" type="xsd:string"/>
> <part name="cc" type="xsd:string"/>
> </message>
> <portType name="EmailSenderPortType">
> <operation name="SendEmail">
> <input name="input1" message="tns:EmailSenderInputMessage"/>
> </operation>
> </portType>
> <binding name="EmailSenderBinding" type="tns:EmailSenderPortType">
> <email:SMTPbinding/>
> <operation name="SendEmail">
> <email:SMTPoperation/>
> <input name="input1">
> <email:SMTPinput message="message" subject="subject"
> from="from" to="to" embedImagesInHtml="false" handleNMAttachments="false"
> use="literal" sendOption="Text Only" cc="cc" bcc="bcc">
> <email:SMTPattachment disposition="ATTACHMENT"
> readFromFile="c:\temp\output.txt"/>
> <email:SMTPattachment partName="attachmentText"
> disposition="ATTACHMENT"/>
> </email:SMTPinput>
> </input>
> </operation>
> </binding>
> <service name="EmailSenderService">
> <port name="EmailSenderPort" binding="tns:EmailSenderBinding">
> <email:SMTPaddress emailServer="smtp.gmail.com" useSSL="true"
> port="465" userName="<replace>" password="<replace>"/>
> </port>
> </service>
> <plnk:partnerLinkType name="EmailSender">
> <!-- A partner link type is automatically generated when a new port
> type is added. Partner link types are used by BPEL processes.
> In a BPEL process, a partner link represents the interaction between the
> BPEL process and a partner service. Each partner link is associated with a
> partner link type.
> A partner link type characterizes the conversational relationship between
> two services. The partner link type can have one or two roles.-->
> <plnk:role name="EmailSenderPortTypeRole"
> portType="tns:EmailSenderPortType"/>
> </plnk:partnerLinkType>
> </definitions>
>
>
> ERRORS
>
> C:/Documents and Settings/cbuda/My
> Documents/NetBeansProjects/SendEmailWithAttachments/src/sendEmailWithAttachments.bpel:53:
> 12
> WARNING: The types of "From" and "To" activities are different: "string" and
> "EmailSenderInputMessage".
>
> C:/Documents and Settings/cbuda/My
> Documents/NetBeansProjects/SendEmailWithAttachments/src/EmailSender.wsdl:28:
> 16
> ERROR: cvc-complex-type.3.2.2: Attribute 'embedImagesInHtml' is not allowed
> to appear in element 'email:SMTPinput'.
>
> C:/Documents and Settings/cbuda/My
> Documents/NetBeansProjects/SendEmailWithAttachments/src/EmailSender.wsdl:28:
> 16
> ERROR: cvc-complex-type.3.2.2: Attribute 'handleNMAttachments' is not
> allowed to appear in element 'email:SMTPinput'.
>
> C:/Documents and Settings/cbuda/My
> Documents/NetBeansProjects/SendEmailWithAttachments/src/EmailSender.wsdl:28:
> 16
> ERROR: cvc-complex-type.3.2.2: Attribute 'sendOption' is not allowed to
> appear in element 'email:SMTPinput'.
>
> C:/Documents and Settings/cbuda/My
> Documents/NetBeansProjects/SendEmailWithAttachments/src/EmailSender.wsdl:28:
> 16
> ERROR: cvc-complex-type.2.1: Element 'email:SMTPinput' must have no
> character or element information item [children], because the type's content
> type is empty.
>
> C:/Documents and Settings/cbuda/My
> Documents/NetBeansProjects/SendEmailWithAttachments/src/EmailSender.wsdl:37:
> 12
> ERROR: The value of attribute "userName" associated with an element type
> "null" must not contain the '<' character.
>
> C:/Documents and Settings/cbuda/My
> Documents/NetBeansProjects/SendEmailWithAttachments/src/sendEmailWithAttachments.bpel:50:
> 16
> ERROR: The content of elements must consist of well-formed character data or
> markup.
>
> Found validation error(s).
> BUILD FAILED (total time: 0 seconds)
>
>