Archive for the 'Web Service' Category

A XFire error and solution

when i tried to deploy my web service with XFire, i got the following error message:

Exception in thread "main" org.codehaus.xfire.annotations.AnnotationException: Service class cannot be abstract: com.webserviceproject.xifre…

the root cause is mis-matched dependency libs, for my case, i’ve imported xfire-annotation-1.2.6.jar and xfire-annotation-1.1.1.jar at the same time. coz i used the wrong pom.xml as below:

        <dependency>
            <groupId>org.codehaus.xfire</groupId>
            <artifactId>xfire-jaxb2</artifactId>
            <version>1.1.1</version>
        </dependency>
        <dependency>
            <groupId>org.codehaus.xfire</groupId>
            <artifactId>xfire-spring</artifactId>
            <version>1.1.1</version>
        </dependency>
        <dependency>
            <groupId>org.codehaus.xfire</groupId>
            <artifactId>xfire-java5</artifactId>
            <version>1.1.1</version>
        </dependency>
       
      <dependency>
            <groupId>org.codehaus.xfire</groupId>
            <artifactId>xfire-all</artifactId>
            <version>1.2.6</version>
        </dependency>

see, actually i’ve imported XFire lib twice(1.1.1 & 1.2.6), that’s the reason why the Java complains, we just need the dependency in green.

good luck.

MS Soap Toolkit In C++

下面的例子简要的说明一下如何使用MS Soap Toolkit访问Web Service

首先


#import “msxml3.dll”
#import “C:Program FilesCommon FilesMSSoapBinariesmssoap30.dll”
exclude(“IStream”, “ISequentialStream”, “_LARGE_INTEGER”,
“_ULARGE_INTEGER”, “tagSTATSTG”, “_FILETIME”)


Read the rest of this entry »

Switch to our mobile site