Yes, here it is....

BTJ

On Wed, 22 Oct 2008 07:36:59 -0500
"Michael Lewis" <[EMAIL PROTECTED]> wrote:

> Bjorn,
> 
> Can you send your Service Endpoint Interface?
> 
> On Wed, Oct 22, 2008 at 2:08 AM, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
> 
> > I am trying to develop some web services using Java and CXF and the clients
> > that are going to use these are written in .Net.
> > But I am having a problem... When I add SOAP headers like this..:
> >
> > LogonServiceResponse logon(@WebParam(name = "userId") String userId,
> > @WebParam(name = "password") String password, @WebParam(name =
> > "soap_username", header = true, mode = WebParam.Mode.IN) String
> > soap_username, @WebParam(name = "soap_password", header = true, mode =
> > WebParam.Mode.IN) String soap_password);
> >
> >
> > (i.e the two last arguments), I get the following error from Visual Studio
> > when trying to add the web reference..:
> >
> > Custom tool error: Unable to import WebService/Schema. Unable to import
> > binding 'serviceSoapBinding' from namespace '
> > http://webservices.domainservice.as.asp.no/'. Unable to import operation
> > 'logonService'. Part 'soap_username' from message 'logonService' in
> > namespace 'http://webservices.domainservice.as.asp.no/' is missing the
> > element attribute. The element attribute is required for headers when
> > Use=Literal.
> >
> >
> > Can someone help me, this is my first try to make web services....
> >
> >
> >
> > Regards,
> >
> > BTJ
> >
> >
> > --
> >
> > -----------------------------------------------------------------------------------------------
> > Bjørn T Johansen
> >
> > [EMAIL PROTECTED]
> >
> > -----------------------------------------------------------------------------------------------
> > Someone wrote:
> > "I understand that if you play a Windows CD backwards you hear strange
> > Satanic messages"
> > To which someone replied:
> > "It's even worse than that; play it forwards and it installs Windows"
> >
> > -----------------------------------------------------------------------------------------------
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
> >
> >
package no.asp.as.domainservice.webservices;

import javax.jws.WebParam;
import javax.jws.WebService;

/**
 * 2DPOINT webservices interface.
 *
 * @author btj
 * @version $Id: BasicService,v 1.0 2008/4/25 14:18:00 btj Exp $
 * @since Apr 25, 2008 2:18:36 PM
 */
@WebService
public interface Service
{
    /**
     * Logon 2DPOINT.
     *
     * @param userId
     * @param password
     * @return UserInfo
     */
    LogonServiceResponse logon(@WebParam(name = "userId") String userId, @WebParam(name = "password") String password, @WebParam(name = "soap_username", header = true, mode = WebParam.Mode.IN) String soap_username, @WebParam(name = "soap_password", header = true, mode = WebParam.Mode.IN) String soap_password);

    /**
     * Logout from 2DPOINT.
     *
     * @param ticket
     * @param userId
     * @return Asp2DPointServiceResponse
     */
    ServiceResponse logout(@WebParam(name = "ticket") Long ticket, @WebParam(name = "userId") String userId);

    /**
     * Find Kunde using userId.
     *
     * @param ticket
     * @param eksternReferanse
     * @return
     */
    KundeServiceResponse findKunde(@WebParam(name = "ticket") Long ticket, @WebParam(name = "customerNo") String eksternReferanse);

    /**
     * <p>Find Kunder using searchText.</p>
     * SearchText could be nothing(all) or one or more of: navn, eksternReferanse, adresse1, adresse2, telefon, privatnr, mobil, poststed.
     *
     * @param ticket
     * @param searchText
     * @return
     */
    KundeServiceResponse findKunder(@WebParam(name = "ticket") Long ticket, @WebParam(name = "searchText") String searchText);
}

Reply via email to